add an intermediate variable (prepare for next patch)

Originally committed as revision 8697 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2007-04-09 17:00:09 +00:00
parent cca9b6cdb3
commit 79f2634686
1 changed files with 3 additions and 1 deletions

View File

@ -2394,6 +2394,7 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
{
int res = 0;
int track;
AVStream *st;
AVPacket *pkt;
uint8_t *origdata = data;
int16_t block_time;
@ -2418,7 +2419,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
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;
}