aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhd_parser.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-07 01:07:47 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-10 14:29:54 +0200
commitd98dfcecad179260182d90ed1d170c1037db7568 (patch)
treee2fafb2a1b03633949611bf27f346d03f20c5538 /libavcodec/dnxhd_parser.c
parent44dc42e4ac1f635bfcb2ba9e77f7caa623b80764 (diff)
downloadffmpeg-d98dfcecad179260182d90ed1d170c1037db7568.tar.gz
fftools/ffmpeg_demux: Don't use fake object with av_opt_eval
The av_opt_eval family of functions emits errors messages on error and can therefore not be used with fake objects when the AVClass has a custom item_name callback. The AVClass for AVCodecContext has such a custom callback (it searches whether an AVCodec is set to use its name). In practice it means that whatever is directly after the "cc" pointer to the AVClass for AVCodec in the stack frame of ist_add() will be treated as a pointer to an AVCodec with unpredictable consequences. Fix this by using an actual AVCodecContext instead of a fake object. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dnxhd_parser.c')
0 files changed, 0 insertions, 0 deletions