[FFmpeg-cvslog] dsicinav: return meaningful error code
Paul B Mahol
git at videolan.org
Thu Oct 25 15:10:53 CEST 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Oct 25 12:59:34 2012 +0000| [296f9c2b3bc2e38b45afc107e750a79203d2236f] | committer: Paul B Mahol
dsicinav: return meaningful error code
While here remove redundant references in error message.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=296f9c2b3bc2e38b45afc107e750a79203d2236f
---
libavcodec/dsicinav.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c
index 11afadf..fd2f682 100644
--- a/libavcodec/dsicinav.c
+++ b/libavcodec/dsicinav.c
@@ -287,9 +287,9 @@ static int cinvideo_decode_frame(AVCodecContext *avctx,
}
cin->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
- if (avctx->reget_buffer(avctx, &cin->frame)) {
- av_log(cin->avctx, AV_LOG_ERROR, "delphinecinvideo: reget_buffer() failed to allocate a frame\n");
- return -1;
+ if ((res = avctx->reget_buffer(avctx, &cin->frame))) {
+ av_log(cin->avctx, AV_LOG_ERROR, "failed to allocate a frame\n");
+ return res;
}
memcpy(cin->frame.data[1], cin->palette, sizeof(cin->palette));
More information about the ffmpeg-cvslog
mailing list