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
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue