[FFmpeg-devel] [PATCH 12/28] added: Ticket #7187, TV Teletext support for DVB EBU Teletext streams
Mans Rullgard
mans
Wed Jun 30 11:09:40 CEST 2010
From: Cory Fields <theuni-nospam- at xbmc.org>
---
libavcodec/avcodec.h | 4 ++++
libavformat/mpegts.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index d444b31..9f70e83 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -349,6 +349,10 @@ enum CodecID {
CODEC_ID_HDMV_PGS_SUBTITLE,
CODEC_ID_DVB_TELETEXT,
+ /* data codecs */
+ CODEC_ID_VBI_DATA= 0x17500,
+ CODEC_ID_VBI_TELETEXT,
+
/* other specific kind of codecs (generally used for attachments) */
CODEC_ID_TTF= 0x18000,
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5d90f01..c1704da 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -534,6 +534,8 @@ static const StreamType DESC_types[] = {
{ 0x7b, AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
{ 0x56, AVMEDIA_TYPE_SUBTITLE, CODEC_ID_DVB_TELETEXT },
{ 0x59, AVMEDIA_TYPE_SUBTITLE, CODEC_ID_DVB_SUBTITLE }, /* subtitling descriptor */
+ { 0x45, CODEC_TYPE_DATA, CODEC_ID_VBI_DATA }, /* VBI Data descriptor */
+ { 0x46, CODEC_TYPE_DATA, CODEC_ID_VBI_TELETEXT }, /* VBI Teletext descriptor */
{ 0 },
};
--
1.7.1.1
More information about the ffmpeg-devel
mailing list