mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-10 08:22:32 +00:00
tsdemux: Add conditions to identify ATSC EAC3
https://bugzilla.gnome.org/show_bug.cgi?id=770528
This commit is contained in:
parent
5771e6a066
commit
69b866326e
3 changed files with 16 additions and 0 deletions
|
@ -174,6 +174,7 @@ typedef enum {
|
||||||
GST_MTS_DESC_ATSC_REDISTRIBUTION_CONTROL = 0xAA,
|
GST_MTS_DESC_ATSC_REDISTRIBUTION_CONTROL = 0xAA,
|
||||||
GST_MTS_DESC_ATSC_GENRE = 0xAB,
|
GST_MTS_DESC_ATSC_GENRE = 0xAB,
|
||||||
GST_MTS_DESC_ATSC_PRIVATE_INFORMATION = 0xAD,
|
GST_MTS_DESC_ATSC_PRIVATE_INFORMATION = 0xAD,
|
||||||
|
GST_MTS_DESC_ATSC_EAC3 = 0xCC,
|
||||||
|
|
||||||
/* ATSC A/53:3 2009 */
|
/* ATSC A/53:3 2009 */
|
||||||
GST_MTS_DESC_ATSC_ENHANCED_SIGNALING = 0xB2,
|
GST_MTS_DESC_ATSC_ENHANCED_SIGNALING = 0xB2,
|
||||||
|
|
|
@ -233,5 +233,6 @@
|
||||||
#define DRF_ID_HEVC 0x48455643
|
#define DRF_ID_HEVC 0x48455643
|
||||||
#define DRF_ID_KLVA 0x4b4c5641 /* defined in RP217 */
|
#define DRF_ID_KLVA 0x4b4c5641 /* defined in RP217 */
|
||||||
#define DRF_ID_OPUS 0x4f707573
|
#define DRF_ID_OPUS 0x4f707573
|
||||||
|
#define DRF_ID_EAC3 0x45414333 /* defined in A/52 Annex G */
|
||||||
|
|
||||||
#endif /* __GST_MPEG_DESC_H__ */
|
#endif /* __GST_MPEG_DESC_H__ */
|
||||||
|
|
|
@ -1507,10 +1507,24 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
|
||||||
caps = gst_caps_new_empty_simple ("audio/x-ac3");
|
caps = gst_caps_new_empty_simple ("audio/x-ac3");
|
||||||
break;
|
break;
|
||||||
case ST_PS_AUDIO_EAC3:
|
case ST_PS_AUDIO_EAC3:
|
||||||
|
{
|
||||||
/* ATSC_ENHANCED_AC3 */
|
/* ATSC_ENHANCED_AC3 */
|
||||||
|
if (bstream->registration_id == DRF_ID_EAC3 ||
|
||||||
|
mpegts_get_descriptor_from_stream (bstream, GST_MTS_DESC_ATSC_EAC3)) {
|
||||||
is_audio = TRUE;
|
is_audio = TRUE;
|
||||||
caps = gst_caps_new_empty_simple ("audio/x-eac3");
|
caps = gst_caps_new_empty_simple ("audio/x-eac3");
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_ELEMENT_WARNING (demux, STREAM, DEMUX,
|
||||||
|
("Assuming ATSC E-AC3 audio stream."),
|
||||||
|
("ATSC E-AC3 stream type found but no guarantee way found to "
|
||||||
|
"differentiate among other standards (DVB, ISDB and etc..)"));
|
||||||
|
|
||||||
|
is_audio = TRUE;
|
||||||
|
caps = gst_caps_new_empty_simple ("audio/x-eac3");
|
||||||
|
break;
|
||||||
|
}
|
||||||
case ST_PS_AUDIO_LPCM2:
|
case ST_PS_AUDIO_LPCM2:
|
||||||
is_audio = TRUE;
|
is_audio = TRUE;
|
||||||
caps = gst_caps_new_empty_simple ("audio/x-private2-lpcm");
|
caps = gst_caps_new_empty_simple ("audio/x-private2-lpcm");
|
||||||
|
|
Loading…
Reference in a new issue