cosmetic: simplify some constructs

Originally committed as revision 9989 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2007-08-08 19:23:40 +00:00
parent 6ff3f3e7ce
commit 2d563d2f8e

View File

@ -1507,12 +1507,9 @@ static int http_parse_request(HTTPContext *c)
break;
}
if (wmpc) {
if (modify_current_stream(wmpc, ratebuf)) {
if (wmpc && modify_current_stream(wmpc, ratebuf))
wmpc->switch_pending = 1;
}
}
}
snprintf(msg, sizeof(msg), "POST command not handled");
c->stream = 0;
@ -1840,15 +1837,12 @@ static void compute_stats(HTTPContext *c)
bitrate = 0;
if (c1->stream) {
for (j = 0; j < c1->stream->nb_streams; j++) {
if (!c1->stream->feed) {
if (!c1->stream->feed)
bitrate += c1->stream->streams[j]->codec->bit_rate;
} else {
if (c1->feed_streams[j] >= 0) {
else if (c1->feed_streams[j] >= 0)
bitrate += c1->stream->feed->streams[c1->feed_streams[j]]->codec->bit_rate;
}
}
}
}
i++;
p = inet_ntoa(c1->from_addr.sin_addr);