h26xbitwriter: false have_space if aligning fails on aud
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 11 Oct 2024 15:58:37 +0000 (11:58 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 19 Oct 2024 23:41:20 +0000 (23:41 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7697>

subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c
subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265bitwriter.c

index 9eff9146fecb8b61598ac026dceb8a2586616843..54e1bf9fd1b3b20f540bb82c9871fb4f3d7068de 100644 (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;
   }
 
index 78a2d58a2b0b8ce6c55697a93331b2c053552f23..8cd5c741f0bdd8ee9d66b2c1b4be363231020606 100644 (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;
   }