diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-16 21:26:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-16 21:46:00 +0100 |
commit | 5c02c95f2c2a9302446b8abdad6ca2c0f1d1e821 (patch) | |
tree | d5966e8f1269635f9d6066ba389c1ab88387d928 /libavcodec/mpeg12.c | |
parent | 58f21b6c9354bbc8414d9ff87645a7292cbe0d92 (diff) | |
download | ffmpeg-5c02c95f2c2a9302446b8abdad6ca2c0f1d1e821.tar.gz |
avcodec/mpeg12: Fix error return
Also remove a tab
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 765a80dd2e..d92d24a836 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -334,8 +334,8 @@ end: CLOSE_READER(re, gb); } - if (i > MAX_INDEX) - i = AVERROR_INVALIDDATA; + if (i > MAX_INDEX) + return AVERROR_INVALIDDATA; block_last_index[index] = i; return 0; |