Commit 79f26346 authored by Aurelien Jacobs's avatar Aurelien Jacobs

add an intermediate variable (prepare for next patch)

Originally committed as revision 8697 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cca9b6cd
...@@ -2394,6 +2394,7 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, ...@@ -2394,6 +2394,7 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
{ {
int res = 0; int res = 0;
int track; int track;
AVStream *st;
AVPacket *pkt; AVPacket *pkt;
uint8_t *origdata = data; uint8_t *origdata = data;
int16_t block_time; int16_t block_time;
...@@ -2418,7 +2419,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, ...@@ -2418,7 +2419,8 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
av_free(origdata); av_free(origdata);
return res; 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); av_free(origdata);
return res; return res;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment