Commit 4f2954e2 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Ronald S. Bultje

smacker: remove unnecessary call to avctx->release_buffer in decode_frame()

The release_buffer was cleaning the provided frame, thus causing the
successive call to avctx->reget_buffer() to allocate a new frame.  In
case the returned frame was not the same one previously returned but a
new one with different data, it resulted in artifacts.
Signed-off-by: default avatarRonald S. Bultje <>
parent 5eef4afb
......@@ -360,8 +360,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
if(buf_size <= 769)
return 0;
avctx->release_buffer(avctx, &smk->pic);
smk->pic.reference = 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment