summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
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 765a80d..d92d24a 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;
OpenPOWER on IntegriCloud