Commit a08efa2e authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4e9e0700
......@@ -2292,6 +2292,9 @@ static int has_decode_delay_been_guessed(AVStream *st)
#endif
if(st->codec->has_b_frames<3)
return st->info->nb_decoded_frames >= 6;
else if(st->codec->has_b_frames<4)
return st->info->nb_decoded_frames >= 18;
else
return st->info->nb_decoded_frames >= 20;
}
......
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