]> git.sesse.net Git - ffmpeg/commit
avcodec/svq3: Avoid overhead of AVBuffer API
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 13 Sep 2020 01:15:29 +0000 (03:15 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 16 Sep 2020 22:09:08 +0000 (00:09 +0200)
commitef6c52f3c56ffdefb6c1f108b583b60657ff0bfc
tree936b4e60a5ca41db174978e5cbd18d1d54f7d7d0
parent30620956ff7d1cf0f42846847d44e739bf094540
avcodec/svq3: Avoid overhead of AVBuffer API

Up until now, the SVQ3 decoder allocated several refcounted buffers,
despite no sharing/refcounting happening at all: Their refcount never
exceeds one and they are treated like ordinary buffers (with the
exception that the pointer used to access them is in the middle of the
allocated buffer, but this does not warrant using the AVBuffer API at
all). Given that using the AVBuffer API incurs overhead, it is no longer
used at all.

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