[FFmpeg-soc] [soc]: r396 - matroska/matroskaenc.c

conrad subversion at mplayerhq.hu
Fri Jul 13 23:38:09 CEST 2007


Author: conrad
Date: Fri Jul 13 23:38:09 2007
New Revision: 396

Log:
Keyframe is the first bit not last

Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Fri Jul 13 23:38:09 2007
@@ -544,7 +544,7 @@ static int mkv_write_packet(AVFormatCont
     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) {



More information about the FFmpeg-soc mailing list