mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 19:01:03 +00:00
avcodec/options: leave priv_data in avcodec_copy_context() intact
previously it was freed but the pointer not cleared Found-by: ruggles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
82efa24c51
commit
e0d0745560
@ -182,7 +182,6 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
|
||||
}
|
||||
|
||||
av_opt_free(dest);
|
||||
av_free(dest->priv_data);
|
||||
|
||||
memcpy(dest, src, sizeof(*dest));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user