|
|
@@ -741,7 +741,7 @@ static int apng_encode_frame(AVCodecContext *avctx, const AVFrame *pict, |
|
|
|
diffFrame->format = pict->format; |
|
|
|
diffFrame->width = pict->width; |
|
|
|
diffFrame->height = pict->height; |
|
|
|
if ((ret = av_frame_get_buffer(diffFrame, 32)) < 0) |
|
|
|
if ((ret = av_frame_get_buffer(diffFrame, 0)) < 0) |
|
|
|
goto fail; |
|
|
|
|
|
|
|
original_bytestream = s->bytestream; |
|
|
@@ -956,7 +956,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, |
|
|
|
s->prev_frame->format = pict->format; |
|
|
|
s->prev_frame->width = pict->width; |
|
|
|
s->prev_frame->height = pict->height; |
|
|
|
if ((ret = av_frame_get_buffer(s->prev_frame, 32)) < 0) |
|
|
|
if ((ret = av_frame_get_buffer(s->prev_frame, 0)) < 0) |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|