Browse Source

Keyframe is the first bit not last

Originally committed as revision 10325 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad 18 years ago
parent
commit
f9c8d57b79
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/matroskaenc.c

+ 1
- 1
libavformat/matroskaenc.c View File

@@ -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) {


Loading…
Cancel
Save