Message ID | 57D45FB2.9030607@gmail.com |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 1259577..28a8fd0 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -248,10 +248,13 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, if ((res = av_image_check_size(avctx->width, avctx->height, 0, avctx)) < 0) return res; - if (need_copy) + if (need_copy) { frame->buf[0] = av_buffer_alloc(FFMAX(context->frame_size, buf_size)); - else + av_log(NULL, AV_LOG_ERROR, "ADF need_copy = true\n"); + } else { frame->buf[0] = av_buffer_ref(avpkt->buf); + av_log(NULL, AV_LOG_ERROR, "ADF need_copy = false\n"); + }