mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavc/decode: clear side data in reget_buffer()
Otherwise it may accumulate when e.g. global side data is repeatedly copied to the frame with in each subsequent reget_buffer() call.
This commit is contained in:
parent
e19551d165
commit
bcbe999077
@ -1730,6 +1730,8 @@ static int reget_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flag
|
||||
if (!frame->data[0])
|
||||
return ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF);
|
||||
|
||||
av_frame_side_data_free(&frame->side_data, &frame->nb_side_data);
|
||||
|
||||
if ((flags & FF_REGET_BUFFER_FLAG_READONLY) || av_frame_is_writable(frame))
|
||||
return ff_decode_frame_props(avctx, frame);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user