aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-01-13 22:50:26 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-01-13 22:50:26 +0000
commitdcc2220ab5c15a6b79d4d8d074b9347715dca83d (patch)
tree3c1d2fca243e979dacbd5938fa25d6a050a67edb /libavformat
parent33931016e51c0c928651996ce28b086dfb7b9385 (diff)
downloadffmpeg-dcc2220ab5c15a6b79d4d8d074b9347715dca83d.tar.gz
remove useless declarations from mpegts.h
Originally committed as revision 21205 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegts.h7
-rw-r--r--libavformat/mpegtsenc.c21
2 files changed, 20 insertions, 8 deletions
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
index 7c4e73cde2..688734129f 100644
--- a/libavformat/mpegts.h
+++ b/libavformat/mpegts.h
@@ -56,11 +56,4 @@
#define STREAM_TYPE_AUDIO_AC3 0x81
#define STREAM_TYPE_AUDIO_DTS 0x8a
-typedef struct MpegTSContext MpegTSContext;
-
-MpegTSContext *mpegts_parse_open(AVFormatContext *s);
-int mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt,
- const uint8_t *buf, int len);
-void mpegts_parse_close(MpegTSContext *ts);
-
#endif /* AVFORMAT_MPEGTS_H */
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 9b12af7ecb..21e92bf6b2 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -196,6 +196,8 @@ static void mpegts_write_pat(AVFormatContext *s)
data, q - data);
}
+
+
static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
{
// MpegTSWrite *ts = s->priv_data;
@@ -240,7 +242,10 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
stream_type = STREAM_TYPE_AUDIO_AAC;
break;
case CODEC_ID_AC3:
- stream_type = STREAM_TYPE_AUDIO_AC3;
+ if (!strcmp(s->oformat->name, "dvb"))
+ stream_type = STREAM_TYPE_PRIVATE_DATA;
+ else
+ stream_type = STREAM_TYPE_AUDIO_AC3;
break;
default:
stream_type = STREAM_TYPE_PRIVATE_DATA;
@@ -886,3 +891,17 @@ AVOutputFormat mpegts_muxer = {
mpegts_write_packet,
mpegts_write_end,
};
+
+
+AVOutputFormat dvb_muxer = {
+ "dvb",
+ NULL_IF_CONFIG_SMALL("DVB style MPEG-2 transport stream format"),
+ "video/x-mpegts",
+ "dvb",
+ sizeof(MpegTSWrite),
+ CODEC_ID_MP2,
+ CODEC_ID_MPEG2VIDEO,
+ mpegts_write_header,
+ mpegts_write_packet,
+ mpegts_write_end,
+};