]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_showpalette: Don't pretend disp_palette can fail
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 15 Jun 2020 18:01:07 +0000 (20:01 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Jun 2020 11:52:01 +0000 (13:52 +0200)
commit3f2be5372e438b1463e6d5b18ff18b0fccdc74cd
tree8548d5d56570e715d8e2d78991a4fbf2fe515f05
parent05475ad26b3068d0048d5bc11f15c51794dce944
avfilter/vf_showpalette: Don't pretend disp_palette can fail

It can't fail, yet it returns an int and other code checks whether it
failed; yet if it did fail, an AVFrame would leak. One could of course
add an av_frame_free for this (that compilers could optimize away), yet
it is easier to simply stop pretending that disp_palette could fail.

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