]> git.sesse.net Git - ffmpeg/commit
avcodec/qtrle: call ff_reget_buffer() only when the picture data is going to change
authorJames Almer <jamrial@gmail.com>
Mon, 26 Aug 2019 17:29:59 +0000 (14:29 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Aug 2019 18:24:21 +0000 (15:24 -0300)
commitd70bbdc5fa05e1c0ce381eacc6e987b5e0701d1c
treecc0a25aad251e7fe2d9cf6fb6149a510c735570f
parent8b71cc3363b5d5b01a56f334e8b6318374192076
avcodec/qtrle: call ff_reget_buffer() only when the picture data is going to change

ff_reget_buffer() will attempt to create a writable copy of the frame,
which is not needed when the decoder intends to return a reference to
the same buffer as the previous frame.

Should reduce data copy, hopefully achieving a similar speed up as
a9dacdeea6168787a142209bd19fdd74aefc9dd6 without dropping frames.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/qtrle.c