You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
cosmetic: simplify some constructs
Originally committed as revision 9989 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
16
ffserver.c
16
ffserver.c
@@ -1507,11 +1507,8 @@ static int http_parse_request(HTTPContext *c)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wmpc) {
|
if (wmpc && modify_current_stream(wmpc, ratebuf))
|
||||||
if (modify_current_stream(wmpc, ratebuf)) {
|
wmpc->switch_pending = 1;
|
||||||
wmpc->switch_pending = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(msg, sizeof(msg), "POST command not handled");
|
snprintf(msg, sizeof(msg), "POST command not handled");
|
||||||
@@ -1840,13 +1837,10 @@ static void compute_stats(HTTPContext *c)
|
|||||||
bitrate = 0;
|
bitrate = 0;
|
||||||
if (c1->stream) {
|
if (c1->stream) {
|
||||||
for (j = 0; j < c1->stream->nb_streams; j++) {
|
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;
|
bitrate += c1->stream->streams[j]->codec->bit_rate;
|
||||||
} else {
|
else if (c1->feed_streams[j] >= 0)
|
||||||
if (c1->feed_streams[j] >= 0) {
|
bitrate += c1->stream->feed->streams[c1->feed_streams[j]]->codec->bit_rate;
|
||||||
bitrate += c1->stream->feed->streams[c1->feed_streams[j]]->codec->bit_rate;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user