1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

In av_find_stream_info, decode more h264 to get correct delay, issue #2020

Originally committed as revision 25824 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2010-11-25 02:19:03 +00:00
parent c538eb51c6
commit 581ba2cee1

View File

@ -2051,7 +2051,7 @@ static int has_codec_parameters(AVCodecContext *enc)
static int has_decode_delay_been_guessed(AVStream *st) static int has_decode_delay_been_guessed(AVStream *st)
{ {
return st->codec->codec_id != CODEC_ID_H264 || return st->codec->codec_id != CODEC_ID_H264 ||
st->codec_info_nb_frames >= 4 + st->codec->has_b_frames; st->codec_info_nb_frames >= 6 + st->codec->has_b_frames;
} }
static int try_decode_frame(AVStream *st, AVPacket *avpkt) static int try_decode_frame(AVStream *st, AVPacket *avpkt)