From 5c02c95f2c2a9302446b8abdad6ca2c0f1d1e821 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 16 Feb 2016 21:26:54 +0100 Subject: [PATCH] avcodec/mpeg12: Fix error return Also remove a tab Signed-off-by: Michael Niedermayer --- libavcodec/mpeg12.c | 4 ++-- 1 file 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;