mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
2nd try fix got_key_frame when video+audio
Originally committed as revision 13559 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
16e861e3ee
commit
180b7026b9
@ -2101,9 +2101,9 @@ static int http_prepare_data(HTTPContext *c)
|
|||||||
if (c->feed_streams[i] == pkt.stream_index) {
|
if (c->feed_streams[i] == pkt.stream_index) {
|
||||||
AVStream *st = c->fmt_in->streams[source_index];
|
AVStream *st = c->fmt_in->streams[source_index];
|
||||||
pkt.stream_index = i;
|
pkt.stream_index = i;
|
||||||
if (st->codec->codec_type == CODEC_TYPE_AUDIO ||
|
if (pkt.flags & PKT_FLAG_KEY &&
|
||||||
(st->codec->codec_type == CODEC_TYPE_VIDEO &&
|
(st->codec->codec_type == CODEC_TYPE_VIDEO ||
|
||||||
pkt.flags & PKT_FLAG_KEY))
|
c->stream->nb_streams == 1))
|
||||||
c->got_key_frame = 1;
|
c->got_key_frame = 1;
|
||||||
if (!c->stream->send_on_key || c->got_key_frame)
|
if (!c->stream->send_on_key || c->got_key_frame)
|
||||||
goto send_it;
|
goto send_it;
|
||||||
|
Loading…
Reference in New Issue
Block a user