[FFmpeg-cvslog] motionpixels: use meaningful error code
Paul B Mahol
git at videolan.org
Sat Dec 1 11:28:33 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Dec 1 09:18:21 2012 +0000| [3b56ed3478f91a9314ae6b539e63185ad0b89722] | committer: Paul B Mahol
motionpixels: use meaningful error code
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b56ed3478f91a9314ae6b539e63185ad0b89722
---
libavcodec/motionpixels.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c
index 7366713..8d457e0 100644
--- a/libavcodec/motionpixels.c
+++ b/libavcodec/motionpixels.c
@@ -252,13 +252,13 @@ static int mp_decode_frame(AVCodecContext *avctx,
int buf_size = avpkt->size;
MotionPixelsContext *mp = avctx->priv_data;
GetBitContext gb;
- int i, count1, count2, sz;
+ int i, count1, count2, sz, ret;
mp->frame.reference = 3;
mp->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
- if (avctx->reget_buffer(avctx, &mp->frame)) {
+ if ((ret = avctx->reget_buffer(avctx, &mp->frame)) < 0) {
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
- return -1;
+ return ret;
}
/* le32 bitstream msb first */
More information about the ffmpeg-cvslog
mailing list