codecparsers: av1: Add an API to reset the annex_b state only.
authorHe Junyan <junyan.he@intel.com>
Fri, 9 Oct 2020 08:13:28 +0000 (16:13 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 17 Nov 2020 19:31:09 +0000 (19:31 +0000)
commitc4aaeb0509f98799df2393d2d084279dee8a0522
tree430012a8b9fe6265799f6a1bc66c5373f33ea06f
parenta4f459fe218a53107ecd99ef91a8c67867b5fcdf
codecparsers: av1: Add an API to reset the annex_b state only.

In practice, we encounter streams that have one or more temporal units
error. When that kind of error temporal units is in annex b format, the
whole temporal unit should be discarded.
But the temporal units before it are correct and can be used. More
important, because of the error temporal unit, the parser is in a wrong
state and all later temporal unit are also parsed uncorrectly.
We need to add this API to reset the annex_b state only when we meet
some temporal unit error.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
gst-libs/gst/codecparsers/gstav1parser.c
gst-libs/gst/codecparsers/gstav1parser.h