mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
lavu/frame: free frame metadata when unrefing a frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
84bf1cbef9
commit
febd78e904
@ -310,6 +310,7 @@ void av_frame_unref(AVFrame *frame)
|
|||||||
for (i = 0; i < frame->nb_extended_buf; i++)
|
for (i = 0; i < frame->nb_extended_buf; i++)
|
||||||
av_buffer_unref(&frame->extended_buf[i]);
|
av_buffer_unref(&frame->extended_buf[i]);
|
||||||
av_freep(&frame->extended_buf);
|
av_freep(&frame->extended_buf);
|
||||||
|
av_dict_free(&frame->metadata);
|
||||||
get_frame_defaults(frame);
|
get_frame_defaults(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user