diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2015-06-04 16:29:49 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 02:48:04 +0200 |
commit | 7be0f48a32155ef9f471ffc5a1b41d662ea337f1 (patch) | |
tree | 0ed6539b17270c7fc9e57d66118828486f108937 /libavcodec/qsv_api.c | |
parent | c94d9079b16c35834b8bcd15cb43ca50e0a25485 (diff) | |
download | ffmpeg-7be0f48a32155ef9f471ffc5a1b41d662ea337f1.tar.gz |
lavf/matroskaenc: Write Block Keyframe correctly
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
also considers all non-video frames (audio, subtitles, metadata) to
be keyframes.
[1] http://www.matroska.org/technical/specs/index.html#block_structure
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/qsv_api.c')
0 files changed, 0 insertions, 0 deletions