diff options
Diffstat (limited to 'libavcodec/targa.c')
-rw-r--r-- | libavcodec/targa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/targa.c b/libavcodec/targa.c index 9601a27..ff4390f 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -177,10 +177,8 @@ static int decode_frame(AVCodecContext *avctx, return ret; if (w != avctx->width || h != avctx->height) avcodec_set_dimensions(avctx, w, h); - if ((ret = ff_get_buffer(avctx, p, 0)) < 0) { - av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); + if ((ret = ff_get_buffer(avctx, p, 0)) < 0) return ret; - } if (flags & TGA_TOPTOBOTTOM) { dst = p->data[0]; |