[FFmpeg-devel] [PATCH] lavf/matroskaenc: Write Block Keyframe correctly

Michael Niedermayer michaelni at gmx.at
Fri Jun 5 01:54:10 CEST 2015

On Thu, Jun 04, 2015 at 04:29:49PM -0700, Vignesh Venkatasubramanian wrote:
> Per matroska Block Structure [1], for keyframes 0th bit of the flag
> should not be set (unlike SimpleBlocks). For Blocks, keyframes is
> inferred by the absence of ReferenceBlock element (as done by
> matroskadec). This CL writes the flag correctly and inserts the
> ReferenceBlock element for non-keyframes. The timestamp inserted is
> that of the immediately preceding frame (which is true for VP8 and VP9

> - the only 2 codecs using the matroska block element as of now). It

I think its also used for opus due to discard_padding and then
switching from simple to normal blocks


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150605/4a8f041b/attachment.asc>

More information about the ffmpeg-devel mailing list