diff options
Diffstat (limited to 'libavcodec/crystalhd.c')
-rw-r--r-- | libavcodec/crystalhd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index 5445894..d1ed84b 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -642,10 +642,8 @@ static inline CopyRet copy_frame(AVCodecContext *avctx, priv->pic->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; if (!priv->pic->data[0]) { - if (ff_get_buffer(avctx, priv->pic, AV_GET_BUFFER_FLAG_REF) < 0) { - av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); + if (ff_get_buffer(avctx, priv->pic, AV_GET_BUFFER_FLAG_REF) < 0) return RET_ERROR; - } } bwidth = av_image_get_linesize(avctx->pix_fmt, width, 0); |