av1parse: Reset the annex_b when meet TU inside a buffer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1979>
This commit is contained in:
He Junyan 2021-01-23 19:21:21 +08:00 committed by Víctor Manuel Jáquez Leal
parent d83f253258
commit 5abf4ad4dd

View file

@ -1330,6 +1330,9 @@ again:
" buffer, should not happen normally.", " buffer, should not happen normally.",
gst_av1_parse_alignment_to_string (self->in_align)); gst_av1_parse_alignment_to_string (self->in_align));
frame_complete = TRUE; frame_complete = TRUE;
if (self->in_align == GST_AV1_PARSE_ALIGN_TEMPORAL_UNIT_ANNEX_B)
gst_av1_parser_reset_annex_b (self->parser);
/* Not include this TD obu, it should belong to the next TU or frame */
break; break;
} }