diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-10-25 12:59:34 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-10-25 13:10:23 +0000 |
commit | 296f9c2b3bc2e38b45afc107e750a79203d2236f (patch) | |
tree | 359bc4129ef9a3a6d1d56a2171c3249131c2b5b7 | |
parent | 5c108092a34ea01dff4ff7f8764a904f238ef1f6 (diff) | |
download | ffmpeg-296f9c2b3bc2e38b45afc107e750a79203d2236f.tar.gz |
dsicinav: return meaningful error code
While here remove redundant references in error message.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/dsicinav.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c index 11afadf03f..fd2f6820f4 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)); |