Commit 4c1b4ae1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libutvideodec: use av_frame_move_ref()

AVFrames cannot be copied literally, their definition is in
avutil and their extended_data can point to their data[]
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 999ee281
......@@ -164,7 +164,7 @@ static int utvideo_decode_frame(AVCodecContext *avctx, void *data,
}
*got_frame = 1;
*(AVFrame *)data = *pic;
av_frame_move_ref((AVFrame*)data, pic);
return avpkt->size;
}
......
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