[FFmpeg-cvslog] avcodec/mpeg12: Fix error return
Michael Niedermayer
git at videolan.org
Tue Feb 16 21:48:44 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Feb 16 21:26:54 2016 +0100| [5c02c95f2c2a9302446b8abdad6ca2c0f1d1e821] | committer: Michael Niedermayer
avcodec/mpeg12: Fix error return
Also remove a tab
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c02c95f2c2a9302446b8abdad6ca2c0f1d1e821
---
libavcodec/mpeg12.c | 4 ++--
1 file 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;
More information about the ffmpeg-cvslog
mailing list