diff options
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-qtdemux-Fix-debug-output-during-trun-parsing.patch')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-qtdemux-Fix-debug-output-during-trun-parsing.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-qtdemux-Fix-debug-output-during-trun-parsing.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-qtdemux-Fix-debug-output-during-trun-parsing.patch new file mode 100644 index 0000000000..298ecb0fe6 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0003-qtdemux-Fix-debug-output-during-trun-parsing.patch | |||
@@ -0,0 +1,72 @@ | |||
1 | From c077ff2585927540f038635f26ca4ba99dc92f10 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Thu, 26 Sep 2024 18:40:56 +0300 | ||
4 | Subject: [PATCH 03/13] qtdemux: Fix debug output during trun parsing | ||
5 | |||
6 | Various integers are unsigned so print them as such. Also print the actual | ||
7 | allocation size if allocation fails, not only parts of it. | ||
8 | |||
9 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8109> | ||
10 | |||
11 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/c077ff2585927540f038635f26ca4ba99dc92f10] | ||
12 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
13 | --- | ||
14 | gst/isomp4/qtdemux.c | 17 +++++++++-------- | ||
15 | 1 file changed, 9 insertions(+), 8 deletions(-) | ||
16 | |||
17 | diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c | ||
18 | index 54f2dfead3..4bb24b1b80 100644 | ||
19 | --- a/gst/isomp4/qtdemux.c | ||
20 | +++ b/gst/isomp4/qtdemux.c | ||
21 | @@ -3348,8 +3348,8 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun, | ||
22 | gint64 initial_offset; | ||
23 | gint32 min_ct = 0; | ||
24 | |||
25 | - GST_LOG_OBJECT (qtdemux, "parsing trun track-id %d; " | ||
26 | - "default dur %d, size %d, flags 0x%x, base offset %" G_GINT64_FORMAT ", " | ||
27 | + GST_LOG_OBJECT (qtdemux, "parsing trun track-id %u; " | ||
28 | + "default dur %u, size %u, flags 0x%x, base offset %" G_GINT64_FORMAT ", " | ||
29 | "decode ts %" G_GINT64_FORMAT, stream->track_id, d_sample_duration, | ||
30 | d_sample_size, d_sample_flags, *base_offset, decode_ts); | ||
31 | |||
32 | @@ -3377,7 +3377,7 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun, | ||
33 | /* note this is really signed */ | ||
34 | if (!gst_byte_reader_get_int32_be (trun, &data_offset)) | ||
35 | goto fail; | ||
36 | - GST_LOG_OBJECT (qtdemux, "trun data offset %d", data_offset); | ||
37 | + GST_LOG_OBJECT (qtdemux, "trun data offset %u", data_offset); | ||
38 | /* default base offset = first byte of moof */ | ||
39 | if (*base_offset == -1) { | ||
40 | GST_LOG_OBJECT (qtdemux, "base_offset at moof"); | ||
41 | @@ -3399,7 +3399,7 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun, | ||
42 | |||
43 | GST_LOG_OBJECT (qtdemux, "running offset now %" G_GINT64_FORMAT, | ||
44 | *running_offset); | ||
45 | - GST_LOG_OBJECT (qtdemux, "trun offset %d, flags 0x%x, entries %d", | ||
46 | + GST_LOG_OBJECT (qtdemux, "trun offset %u, flags 0x%x, entries %u", | ||
47 | data_offset, flags, samples_count); | ||
48 | |||
49 | if (flags & TR_FIRST_SAMPLE_FLAGS) { | ||
50 | @@ -3608,14 +3608,15 @@ fail: | ||
51 | } | ||
52 | out_of_memory: | ||
53 | { | ||
54 | - GST_WARNING_OBJECT (qtdemux, "failed to allocate %d samples", | ||
55 | - stream->n_samples); | ||
56 | + GST_WARNING_OBJECT (qtdemux, "failed to allocate %u + %u samples", | ||
57 | + stream->n_samples, samples_count); | ||
58 | return FALSE; | ||
59 | } | ||
60 | index_too_big: | ||
61 | { | ||
62 | - GST_WARNING_OBJECT (qtdemux, "not allocating index of %d samples, would " | ||
63 | - "be larger than %uMB (broken file?)", stream->n_samples, | ||
64 | + GST_WARNING_OBJECT (qtdemux, | ||
65 | + "not allocating index of %u + %u samples, would " | ||
66 | + "be larger than %uMB (broken file?)", stream->n_samples, samples_count, | ||
67 | QTDEMUX_MAX_SAMPLE_INDEX_SIZE >> 20); | ||
68 | return FALSE; | ||
69 | } | ||
70 | -- | ||
71 | 2.30.2 | ||
72 | |||