avcodec: Factor updating palette out

Multimedia / FFmpeg - Andreas Rheinhardt [gmail.com] - 22 March 2021 01:43 UTC

Because the properties of frames returned from ff_get/reget_buffer are not reset at all, lots of returned frames had palette_has_changed wrongly set to 1. This has been changed, too.

7b10083933 avcodec: Factor updating palette out
libavcodec/8bps.c | 12 ++----------
libavcodec/cinepak.c | 10 ++--------
libavcodec/decode.c | 14 ++++++++++++++
libavcodec/decode.h | 9 +++++++++
libavcodec/gdv.c | 6 ++----
libavcodec/idcinvideo.c | 10 ++--------
libavcodec/imx.c | 6 ++----
libavcodec/interplayvideo.c | 10 ++--------
libavcodec/kmvc.c | 9 ++-------
libavcodec/msrle.c | 12 +++---------
libavcodec/msvideo1.c | 11 ++---------
libavcodec/qpeg.c | 10 ++--------
libavcodec/qtrle.c | 10 +---------
libavcodec/rawdec.c | 13 ++-----------
libavcodec/rscc.c | 14 +++-----------
libavcodec/smc.c | 10 ++--------
libavcodec/tscc.c | 11 ++---------
17 files changed, 54 insertions(+), 123 deletions(-)

  • Share