avcodec: remove "get_buffer() failed" message
authorPaul B Mahol <onemda@gmail.com>
Fri, 8 Apr 2016 07:40:32 +0000 (09:40 +0200)
committerPaul B Mahol <onemda@gmail.com>
Fri, 8 Apr 2016 07:40:32 +0000 (09:40 +0200)
It is already provided by ff_get_buffer().

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dss_sp.c
libavcodec/qdrw.c

index 7cf8489..ddea483 100644 (file)
@@ -761,10 +761,8 @@ static int dss_sp_decode_frame(AVCodecContext *avctx, void *data,
     }
 
     frame->nb_samples = DSS_SP_SAMPLE_COUNT;
-    if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
-        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed.\n");
+    if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
         return ret;
-    }
 
     out = (int16_t *)frame->data[0];
 
index 0a31b41..828cfea 100644 (file)
@@ -281,10 +281,8 @@ static int decode_frame(AVCodecContext *avctx,
                 avpriv_request_sample(avctx, "Pack type %d", pack_type);
                 return AVERROR_PATCHWELCOME;
             }
-            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;
-            }
 
             /* jump to data */
             bytestream2_skip(&gbc, 30);