diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-17 14:25:14 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-17 14:25:14 +0000 |
commit | e110e968fe1f568a4346034d7315f69d5f2d9479 (patch) | |
tree | 82c3e76f2b0f40efaf2fc32ffc0ae97b55564995 /libavformat | |
parent | 4f90688b6e1d79d85ac2e065a2cf1e7e9bd665a7 (diff) | |
download | ffmpeg-e110e968fe1f568a4346034d7315f69d5f2d9479.tar.gz |
matroskadec: minor simplification
patch from reimar
Originally committed as revision 24804 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index ab5e1d13cf..27dd9b2e03 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1734,7 +1734,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int offset = 0, pkt_size = lace_size[n]; uint8_t *pkt_data = data; - if (lace_size[n] > size) { + if (pkt_size > size) { av_log(matroska->ctx, AV_LOG_ERROR, "Invalid packet size\n"); break; } |