Revision b3d8c2c4 libavformat/matroskadec.c

View differences:

libavformat/matroskadec.c
2268 2268
        av_free(origdata);
2269 2269
        return res;
2270 2270
    }
2271
    if (matroska->tracks[track]->stream_index < 0)
2271
    if (matroska->tracks[track]->stream_index < 0) {
2272
        av_free(origdata);
2272 2273
        return res;
2274
    }
2273 2275
    st = matroska->ctx->streams[matroska->tracks[track]->stream_index];
2274 2276
    if (st->discard >= AVDISCARD_ALL) {
2275 2277
        av_free(origdata);
......
2287 2289
        is_keyframe = flags & 0x80 ? PKT_FLAG_KEY : 0;
2288 2290

  
2289 2291
    if (matroska->skip_to_keyframe) {
2290
        if (!is_keyframe || st != matroska->skip_to_stream)
2292
        if (!is_keyframe || st != matroska->skip_to_stream) {
2293
            av_free(origdata);
2291 2294
            return res;
2295
        }
2292 2296
        matroska->skip_to_keyframe = 0;
2293 2297
    }
2294 2298

  

Also available in: Unified diff