Please ignore this patch as the commit message is incorrect. Sent a new patch with corrected commit message.
On Mon, Mar 7, 2016 at 11:02 AM, Sasi Inguva <is...@google.com> wrote: > Fixes DTS detection for any H264 file of less than 7 frames length. > Without this DTS is N/A. > > Signed-off-by: Sasi Inguva <is...@google.com> > --- > libavformat/utils.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libavformat/utils.c b/libavformat/utils.c > index 5f48de1..5017937 100644 > --- a/libavformat/utils.c > +++ b/libavformat/utils.c > @@ -877,7 +877,9 @@ static int has_decode_delay_been_guessed(AVStream *st) > avpriv_h264_has_num_reorder_frames(st->codec) == > st->codec->has_b_frames) > return 1; > #endif > - if (st->codec->has_b_frames<3) > + if (st->codec->has_b_frames == 0) > + return st->nb_decoded_frames >= 2; > + else if (st->codec->has_b_frames<3) > return st->nb_decoded_frames >= 7; > else if (st->codec->has_b_frames<4) > return st->nb_decoded_frames >= 18; > -- > 2.7.0.rc3.207.g0ac5344 > > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel