diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-24 23:41:24 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:58 +0100 |
commit | 3fe22f2a0d76301de4567cdbade66c1992a57509 (patch) | |
tree | 0951ddeea58840f8859e7a073a12473c2a254116 /doc/examples/vaapi_encode.c | |
parent | 9f895e984b9238727bd442c7c3bba97b0268d2ca (diff) | |
download | ffmpeg-3fe22f2a0d76301de4567cdbade66c1992a57509.tar.gz |
avcodec/utils: Improve check for freeing codec private options
Don't check for AVCodec.priv_data_size (which is always true if
AVCodec.priv_class is set). Instead check for AVCodecContext.priv_data
to actually exist.
(Note: av_opt_free(NULL) is a no-op.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit c6e54d14c55221b7380a0e86d7a42b60ff9e5eeb)
Diffstat (limited to 'doc/examples/vaapi_encode.c')
0 files changed, 0 insertions, 0 deletions