Browse Source

avcodec: remove "get_buffer() failed" message

It is already provided by ff_get_buffer().

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 10 years ago
parent
commit
3e99b377fc
2 changed files with 2 additions and 6 deletions
  1. +1
    -3
      libavcodec/dss_sp.c
  2. +1
    -3
      libavcodec/qdrw.c

+ 1
- 3
libavcodec/dss_sp.c View 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];



+ 1
- 3
libavcodec/qdrw.c View 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);


Loading…
Cancel
Save