aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-30 17:53:50 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-30 17:53:50 +0000
commit180b7026b9099436a43c8565d7680e6baa6bfa54 (patch)
tree946ce9816c2d4539267bf2df64ed98a401481501
parent16e861e3eef2d6f5e98337bfb3c6dbf093037c98 (diff)
downloadffmpeg-180b7026b9099436a43c8565d7680e6baa6bfa54.tar.gz
2nd try fix got_key_frame when video+audio
Originally committed as revision 13559 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffserver.c b/ffserver.c
index b9bae76688..153a13091b 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2101,9 +2101,9 @@ static int http_prepare_data(HTTPContext *c)
if (c->feed_streams[i] == pkt.stream_index) {
AVStream *st = c->fmt_in->streams[source_index];
pkt.stream_index = i;
- if (st->codec->codec_type == CODEC_TYPE_AUDIO ||
- (st->codec->codec_type == CODEC_TYPE_VIDEO &&
- pkt.flags & PKT_FLAG_KEY))
+ if (pkt.flags & PKT_FLAG_KEY &&
+ (st->codec->codec_type == CODEC_TYPE_VIDEO ||
+ c->stream->nb_streams == 1))
c->got_key_frame = 1;
if (!c->stream->send_on_key || c->got_key_frame)
goto send_it;