You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
dsicinav: return meaningful error code
While here remove redundant references in error message. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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;
|
cin->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
|
||||||
if (avctx->reget_buffer(avctx, &cin->frame)) {
|
if ((res = avctx->reget_buffer(avctx, &cin->frame))) {
|
||||||
av_log(cin->avctx, AV_LOG_ERROR, "delphinecinvideo: reget_buffer() failed to allocate a frame\n");
|
av_log(cin->avctx, AV_LOG_ERROR, "failed to allocate a frame\n");
|
||||||
return -1;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(cin->frame.data[1], cin->palette, sizeof(cin->palette));
|
memcpy(cin->frame.data[1], cin->palette, sizeof(cin->palette));
|
||||||
|
Reference in New Issue
Block a user