# HG changeset patch # User conrad # Date 1188951819 0 # Node ID bceeae973b134e8aa81ed31b4ec79c19abfe91d1 # Parent 5589c058b0f9c8aa9f73e3cc8094314cf6d8fc74 Keyframe is the first bit not last diff -r 5589c058b0f9 -r bceeae973b13 matroskaenc.c --- 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) {