Commit 5c02c95f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12: Fix error return

Also remove a tab
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 58f21b6c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment