Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 907287 Details for
Bug 917591
media-video/handbrake-1.7.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/etc/portage/patches/media-video/ffmpeg-6.1.2/ to compile handbrake-1.8.2
0004-avcodec-av1dec-use-named-constants-for-ITU-T-T.35-me.patch (text/plain), 3.54 KB, created by
mehw
on 2024-10-29 23:45:13 UTC
(
hide
)
Description:
/etc/portage/patches/media-video/ffmpeg-6.1.2/ to compile handbrake-1.8.2
Filename:
MIME Type:
Creator:
mehw
Created:
2024-10-29 23:45:13 UTC
Size:
3.54 KB
patch
obsolete
>From 4ca5d451933fd0c2e16378c3566807fd4dd9ec3f Mon Sep 17 00:00:00 2001 >From: James Almer <jamrial@gmail.com> >Date: Mon, 11 Mar 2024 10:59:32 -0300 >Subject: [PATCH] avcodec/av1dec: use named constants for ITU-T T.35 metadata > >Signed-off-by: James Almer <jamrial@gmail.com> >--- > libavcodec/av1dec.c | 12 +++++++----- > libavcodec/itut35.h | 28 ++++++++++++++++++++++++++++ > 2 files changed, 35 insertions(+), 5 deletions(-) > create mode 100644 libavcodec/itut35.h > >diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c >index e6346b51db..4d074c3908 100644 >--- a/libavcodec/av1dec.c >+++ b/libavcodec/av1dec.c >@@ -34,6 +34,7 @@ > #include "decode.h" > #include "hwaccel_internal.h" > #include "internal.h" >+#include "itut35.h" > #include "hwconfig.h" > #include "profiles.h" > #include "refstruct.h" >@@ -951,7 +952,7 @@ static int export_itut_t35(AVCodecContext *avctx, AVFrame *frame, > > provider_code = bytestream2_get_be16(&gb); > switch (provider_code) { >- case 0x31: { // atsc_provider_code >+ case ITU_T_T35_PROVIDER_CODE_ATSC: { > uint32_t user_identifier = bytestream2_get_be32(&gb); > switch (user_identifier) { > case MKBETAG('G', 'A', '9', '4'): { // closed captions >@@ -975,12 +976,12 @@ static int export_itut_t35(AVCodecContext *avctx, AVFrame *frame, > } > break; > } >- case 0x3C: { // smpte_provider_code >+ case ITU_T_T35_PROVIDER_CODE_SMTPE: { > AVDynamicHDRPlus *hdrplus; > int provider_oriented_code = bytestream2_get_be16(&gb); > int application_identifier = bytestream2_get_byte(&gb); > >- if (itut_t35->itu_t_t35_country_code != 0xB5 || >+ if (itut_t35->itu_t_t35_country_code != ITU_T_T35_COUNTRY_CODE_US || > provider_oriented_code != 1 || application_identifier != 4) > break; > >@@ -994,9 +995,10 @@ static int export_itut_t35(AVCodecContext *avctx, AVFrame *frame, > return ret; > break; > } >- case 0x3B: { // dolby_provider_code >+ case ITU_T_T35_PROVIDER_CODE_DOLBY: { > int provider_oriented_code = bytestream2_get_be32(&gb); >- if (itut_t35->itu_t_t35_country_code != 0xB5 || provider_oriented_code != 0x800) >+ if (itut_t35->itu_t_t35_country_code != ITU_T_T35_COUNTRY_CODE_US || >+ provider_oriented_code != 0x800) > break; > > ret = ff_dovi_rpu_parse(&s->dovi, gb.buffer, gb.buffer_end - gb.buffer); >diff --git a/libavcodec/itut35.h b/libavcodec/itut35.h >new file mode 100644 >index 0000000000..10063e6a9e >--- /dev/null >+++ b/libavcodec/itut35.h >@@ -0,0 +1,28 @@ >+/* >+ * This file is part of FFmpeg. >+ * >+ * FFmpeg is free software; you can redistribute it and/or >+ * modify it under the terms of the GNU Lesser General Public >+ * License as published by the Free Software Foundation; either >+ * version 2.1 of the License, or (at your option) any later version. >+ * >+ * FFmpeg is distributed in the hope that it will be useful, >+ * but WITHOUT ANY WARRANTY; without even the implied warranty of >+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >+ * Lesser General Public License for more details. >+ * >+ * You should have received a copy of the GNU Lesser General Public >+ * License along with FFmpeg; if not, write to the Free Software >+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA >+ */ >+ >+#ifndef AVCODEC_ITUT35_H >+#define AVCODEC_ITUT35_H >+ >+#define ITU_T_T35_COUNTRY_CODE_US 0xB5 >+ >+#define ITU_T_T35_PROVIDER_CODE_ATSC 0x31 >+#define ITU_T_T35_PROVIDER_CODE_DOLBY 0x3B >+#define ITU_T_T35_PROVIDER_CODE_SMTPE 0x3C >+ >+#endif /* AVCODEC_ITUT35_H */ >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 917591
:
875262
|
875263
|
886545
|
887851
|
887852
|
887875
|
887876
|
887877
|
887878
|
887993
|
889164
|
907281
|
907282
|
907283
|
907284
|
907285
|
907286
| 907287 |
907288
|
907289
|
907290
|
907291
|
907292
|
907293
|
907294
|
907295
|
907296
|
907297
|
907298