changeset 2456:bceeae973b13 libavformat

Keyframe is the first bit not last
author conrad
date Wed, 05 Sep 2007 00:23:39 +0000
parents 5589c058b0f9
children 114415032922
files matroskaenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskaenc.c	Wed Sep 05 00:23:38 2007 +0000
+++ b/matroskaenc.c	Wed Sep 05 00:23:39 2007 +0000
@@ -544,7 +544,7 @@
     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) {