[FFmpeg-cvslog] r10325 - trunk/libavformat/matroskaenc.c
conrad
subversion
Wed Sep 5 02:23:40 CEST 2007
Author: conrad
Date: Wed Sep 5 02:23:39 2007
New Revision: 10325
Log:
Keyframe is the first bit not last
Modified:
trunk/libavformat/matroskaenc.c
Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c (original)
+++ trunk/libavformat/matroskaenc.c Wed Sep 5 02:23:39 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-cvslog
mailing list