]> git.sesse.net Git - ffmpeg/commit
avcodec/vp9: Fix stack-buffer overflow with VP9 VDPAU available
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 10 Oct 2020 23:29:57 +0000 (01:29 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 11 Oct 2020 00:11:32 +0000 (02:11 +0200)
commitddee53e2680a03a8b8beaa0de02e235046c599c3
treea7a1d20c8f89b7db62cdf343837a20e62836034f
parent8227f60fee0b2ae0924ee6f9b1ed505d3a443526
avcodec/vp9: Fix stack-buffer overflow with VP9 VDPAU available

ccca62ef991f0a47dfa30c3e822d91294b8afe4c added new VP9 VDPAU profiles
and as a consequence AV_PIX_FMT_VDPAU can now be twice in the list of
pixel formats used for format negotiation by ff_thread_get_format(); yet
there is only one entry in said list reserved for VDPAU, leading to a
stack-buffer overflow. This commit fixes this by making sure that
AV_PIX_FMT_VDPAU will not occur twice in said list.

Fixes Coverity ticket 1468046.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/vp9.c