av1parse: Always copy the OBU to cache.
authorHe Junyan <junyan.he@intel.com>
Sat, 23 Jan 2021 09:38:12 +0000 (17:38 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 26 Jan 2021 12:22:31 +0000 (12:22 +0000)
commitee1f6017ac48243cbbf0d5976482ae6043416bc6
tree2670313b64d53544feb71d74638fdadd72b404ce
parenta9c8aa478847b092df44f23faae7e51de0524698
av1parse: Always copy the OBU to cache.

The current optimization when input align and out out align are
the same is not very correct. We simply copy the data from input
buffer to output buffer, but we failed to consider the dropping of
OBUs. When we need to drop some OBUs(such as filter out the OBUs
of some temporal ID), we can not do simple copy. So we need to
always copy the input OBUs into a cache.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1979>
gst/videoparsers/gstav1parse.c