[FFmpeg-cvslog] has_decode_delay_been_guessed: tighten up the heuristic.
Michael Niedermayer
git at videolan.org
Mon Jul 2 23:46:07 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 2 23:23:33 2012 +0200| [a08efa2e3640ef0445032022c0b392376c58bd99] | committer: Michael Niedermayer
has_decode_delay_been_guessed: tighten up the heuristic.
This adds the minimum delay needed with the current decoder to
recognize the reorder buffer size for the reference bitstreams.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a08efa2e3640ef0445032022c0b392376c58bd99
---
libavformat/utils.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 67616af..70f8d46 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2292,7 +2292,10 @@ static int has_decode_delay_been_guessed(AVStream *st)
#endif
if(st->codec->has_b_frames<3)
return st->info->nb_decoded_frames >= 6;
- return st->info->nb_decoded_frames >= 20;
+ else if(st->codec->has_b_frames<4)
+ return st->info->nb_decoded_frames >= 18;
+ else
+ return st->info->nb_decoded_frames >= 20;
}
/* returns 1 or 0 if or if not decoded data was returned, or a negative error */
More information about the ffmpeg-cvslog
mailing list