tsdemux: Add format_identifier for AC4 codec

According to following spec document, add format_identifier for AC4 in tsdemux.

ETSI TS 103 190-2 V1.2.1 : Annex D : AC-4 in MPEG-2 transport stream
This commit is contained in:
Dong Il Park 2020-03-10 16:32:59 +09:00
parent adc3d12741
commit 691b066ec6
2 changed files with 5 additions and 0 deletions

View file

@ -234,5 +234,6 @@
#define DRF_ID_KLVA 0x4b4c5641 /* defined in RP217 */
#define DRF_ID_OPUS 0x4f707573
#define DRF_ID_EAC3 0x45414333 /* defined in A/52 Annex G */
#define DRF_ID_AC4 0x41432D34 /* defined in ETSI TS 103 190-2 Annex D */
#endif /* __GST_MPEG_DESC_H__ */

View file

@ -1498,6 +1498,10 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
caps = gst_caps_new_simple ("meta/x-klv",
"parsed", G_TYPE_BOOLEAN, TRUE, NULL);
break;
case DRF_ID_AC4:
is_audio = TRUE;
caps = gst_caps_new_empty_simple ("audio/x-ac4");
break;
}
if (caps)
break;