From 45b01f945635b708b7e50abb63b8718201f0c272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 11 Oct 2024 11:58:37 -0400 Subject: [PATCH] h26xbitwriter: false have_space if aligning fails on aud Part-of: --- .../gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c | 1 + .../gst-plugins-bad/gst-libs/gst/codecparsers/gsth265bitwriter.c | 1 + 2 files changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c index 5661cce0cd..ca9cec5092 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264bitwriter.c @@ -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; } diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265bitwriter.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265bitwriter.c index c91f2dd06f..e80de38f2c 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265bitwriter.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265bitwriter.c @@ -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; }