aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-16 21:26:54 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-16 21:46:00 +0100
commit5c02c95f2c2a9302446b8abdad6ca2c0f1d1e821 (patch)
treed5966e8f1269635f9d6066ba389c1ab88387d928 /libavcodec/mpeg12.c
parent58f21b6c9354bbc8414d9ff87645a7292cbe0d92 (diff)
downloadffmpeg-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.c4
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;