]> git.sesse.net Git - ffmpeg/commit
avcodec/decode: add a flags parameter to ff_reget_buffer()
authorJames Almer <jamrial@gmail.com>
Fri, 30 Aug 2019 14:37:25 +0000 (11:37 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 4 Sep 2019 13:07:12 +0000 (10:07 -0300)
commit9ea6d2149e25d68885a24894bb911077b05388c4
treed302ed27dd814bea2189537f62c4120f69ecb669
parent39f129593756e3e270ed3881ca076627f30e1eb7
avcodec/decode: add a flags parameter to ff_reget_buffer()

Some decoders may not need a writable buffer in some specific cases, but only
a reference to the existing buffer with updated frame properties instead, for
the purpose of returning duplicate frames. For this, the
FF_REGET_BUFFER_FLAG_READONLY flag is added, which will prevent potential
allocations and buffer copies when they are not needed.

Signed-off-by: James Almer <jamrial@gmail.com>
48 files changed:
libavcodec/aasc.c
libavcodec/anm.c
libavcodec/ansi.c
libavcodec/avs.c
libavcodec/bethsoftvideo.c
libavcodec/bink.c
libavcodec/c93.c
libavcodec/cdgraphics.c
libavcodec/cinepak.c
libavcodec/clearvideo.c
libavcodec/cpia.c
libavcodec/cscd.c
libavcodec/decode.c
libavcodec/dsicinvideo.c
libavcodec/fic.c
libavcodec/flashsv.c
libavcodec/flicvideo.c
libavcodec/gifdec.c
libavcodec/indeo2.c
libavcodec/internal.h
libavcodec/jvdec.c
libavcodec/mmvideo.c
libavcodec/motionpixels.c
libavcodec/msrle.c
libavcodec/mss1.c
libavcodec/mss2.c
libavcodec/mss3.c
libavcodec/mss4.c
libavcodec/msvideo1.c
libavcodec/nuv.c
libavcodec/pafvideo.c
libavcodec/qtrle.c
libavcodec/roqvideodec.c
libavcodec/rpza.c
libavcodec/rscc.c
libavcodec/scpr.c
libavcodec/screenpresso.c
libavcodec/smacker.c
libavcodec/smc.c
libavcodec/tiertexseqv.c
libavcodec/truemotion1.c
libavcodec/truemotion2.c
libavcodec/tscc.c
libavcodec/tscc2.c
libavcodec/ulti.c
libavcodec/vmnc.c
libavcodec/xxan.c
libavcodec/yop.c