h26xbitwriter: false have_space if aligning fails on aud

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7655>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-10-11 11:58:37 -04:00 committed by GStreamer Marge Bot
parent 360787ef27
commit 45b01f9456
2 changed files with 2 additions and 0 deletions

View file

@ -1535,6 +1535,7 @@ gst_h264_bit_writer_aud (guint8 primary_pic_type, gboolean start_code,
/* Add trailings. */
WRITE_BITS (&bw, 1, 1);
if (!gst_bit_writer_align_bytes (&bw, 0)) {
have_space = FALSE;
goto error;
}

View file

@ -2199,6 +2199,7 @@ gst_h265_bit_writer_aud (guint8 pic_type, gboolean start_code,
/* Add trailings. */
WRITE_BITS (&bw, 1, 1);
if (!gst_bit_writer_align_bytes (&bw, 0)) {
have_space = FALSE;
goto error;
}