aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2007-09-05 00:23:39 +0000
committerDavid Conrad <lessen42@gmail.com>2007-09-05 00:23:39 +0000
commitf9c8d57b79022630c4ecc18fd6ec68e626b95b88 (patch)
tree27acf4e718b8a109fe3769c14c0715988e0e5997
parent357eba6f0b726ae9b5056af99fb58b569bee3098 (diff)
downloadffmpeg-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.c2
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) {