Originally committed as revision 8697 to svn://svn.ffmpeg.org/ffmpeg/trunk
{
int res = 0;
int track;
+ AVStream *st;
AVPacket *pkt;
uint8_t *origdata = data;
int16_t block_time;
av_free(origdata);
return res;
}
- if(matroska->ctx->streams[ matroska->tracks[track]->stream_index ]->discard >= AVDISCARD_ALL){
+ st = matroska->ctx->streams[matroska->tracks[track]->stream_index];
+ if (st->discard >= AVDISCARD_ALL) {
av_free(origdata);
return res;
}