diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:23:39 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:23:39 +0000 |
commit | f9c8d57b79022630c4ecc18fd6ec68e626b95b88 (patch) | |
tree | 27acf4e718b8a109fe3769c14c0715988e0e5997 | |
parent | 357eba6f0b726ae9b5056af99fb58b569bee3098 (diff) | |
download | ffmpeg-f9c8d57b79022630c4ecc18fd6ec68e626b95b88.tar.gz |
Keyframe is the first bit not last
Originally committed as revision 10325 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 571d6aa89b..38ee9d6f90 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -544,7 +544,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt) put_ebml_size(pb, pkt->size + 4, 0); put_byte(pb, 0x80 | (pkt->stream_index + 1)); // this assumes stream_index is less than 126 put_be16(pb, pkt->pts - mkv->cluster_pts); - put_byte(pb, keyframe); + put_byte(pb, keyframe << 7); put_buffer(pb, pkt->data, pkt->size); if (s->streams[pkt->stream_index]->codec->codec_type == CODEC_TYPE_VIDEO && keyframe) { |