[vlc-commits] demux: mp4: handle podcast url

Francois Cartegnie git at videolan.org
Thu May 23 10:20:50 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 23 10:20:00 2019 +0200| [393c730ca6a578ba5993590f0a9014a6a22d95f7] | committer: Francois Cartegnie

demux: mp4: handle podcast url

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=393c730ca6a578ba5993590f0a9014a6a22d95f7
---

 modules/demux/mp4/libmp4.c | 1 +
 modules/demux/mp4/libmp4.h | 1 +
 modules/demux/mp4/meta.c   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 0471163576..a0beef3b91 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -5061,6 +5061,7 @@ static const struct
     { ATOM_gsst,    MP4_ReadBox_Metadata,    ATOM_ilst },
     { ATOM_gstd,    MP4_ReadBox_Metadata,    ATOM_ilst },
     { ATOM_ITUN,    MP4_ReadBox_Metadata,    ATOM_ilst }, /* iTunesInfo */
+    { ATOM_purl,    MP4_ReadBox_Metadata,    ATOM_ilst },
 
     /* udta */
     { ATOM_0x40PRM, MP4_ReadBox_Binary,    ATOM_udta },
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 8603a9ec04..feb4ba9aa2 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -408,6 +408,7 @@ typedef int64_t stime_t;
 #define ATOM_CoLL VLC_FOURCC( 'C', 'o', 'L', 'L' )
 #define ATOM_mdcv VLC_FOURCC( 'm', 'd', 'c', 'v' )
 #define ATOM_clli VLC_FOURCC( 'c', 'l', 'l', 'i' )
+#define ATOM_purl VLC_FOURCC( 'p', 'u', 'r', 'l' )
 
 #define ATOM_0x40PRM VLC_FOURCC( '@', 'P', 'R', 'M' )
 #define ATOM_0x40PRQ VLC_FOURCC( '@', 'P', 'R', 'Q' )
diff --git a/modules/demux/mp4/meta.c b/modules/demux/mp4/meta.c
index 4a88c106d4..48d288c930 100644
--- a/modules/demux/mp4/meta.c
+++ b/modules/demux/mp4/meta.c
@@ -108,6 +108,7 @@ static const struct
     { ATOM_gssd,    "YouTube Source Data" },
     { ATOM_gsst,    "YouTube Start Time" },
     { ATOM_gstd,    "YouTube Track Duration" },
+    { ATOM_purl,    "Podcast URL" },
 };
 
 static const struct



More information about the vlc-commits mailing list