AVPacket **packets;
int num_packets;
- AVStream *vstream;
int done;
int has_cluster_id;
}
if (track->type == MATROSKA_TRACK_TYPE_VIDEO) {
- if (!matroska->vstream) matroska->vstream = st;
st->codec->codec_type = CODEC_TYPE_VIDEO;
st->codec->codec_tag = track->video.fourcc;
st->codec->width = track->video.pixel_width;
int64_t cluster_pos)
{
MatroskaTrack *track;
- int is_video_key_frame = is_keyframe, res = 0;
+ int res = 0;
AVStream *st;
AVPacket *pkt;
int16_t block_time;
matroska->skip_to_keyframe = 0;
}
- is_video_key_frame &= st == matroska->vstream;
-
switch ((flags & 0x06) >> 1) {
case 0x0: /* no lacing */
laces = 1;
}
av_free(lace_size);
- return res < 0 ? res : is_video_key_frame;
+ return res;
}
static int matroska_parse_cluster(MatroskaDemuxContext *matroska)