[Ffmpeg-cvslog] r8334 - trunk/libavformat/matroska.c

Loren Merritt lorenm
Thu Mar 15 21:05:18 CET 2007


On Thu, 15 Mar 2007, Michael Niedermayer wrote:
> On Thu, Mar 15, 2007 at 04:03:26PM +0100, Clemens Ladisch wrote:
>> M?ns Rullg?rd wrote:
>>> Rich Felker <dalias at aerifal.cx> writes:
>>>> why can't you just use the max pyramid depth and the nut algorithm to
>>>> get dts??
>>>
>>> How do you find the pyramid depth?
>>
>> num_reorder_frames in the SPS
>
> num_reorder_frames is optional, what do you do if its not there?

When the num_reorder_frames syntax element is not present, the value of
num_reorder_frames value shall be inferred to be equal to
max_dec_frame_buffering.
When the max_dec_frame_buffering syntax element is not present, the
value of max_dec_frame_buffering shall be inferred to be equal to
MaxDpbSize.
MaxDpbSize is specified as a function of Level, which is not optional.

Or, since using a larger than necessary buffer will only waste memory
not change the result, you can ignore the chain of fallbacks and just
use 16 which is the max allowed value.

--Loren Merritt



More information about the ffmpeg-cvslog mailing list