Commit dc984a65 authored by bcoudurier's avatar bcoudurier

2nd try fix got_key_frame when video+audio

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13559 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a226ab8a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment