[FFmpeg-cvslog] r21205 - in trunk/libavformat: mpegts.h mpegtsenc.c

Ramiro Polla ramiro.polla
Thu Jan 14 00:41:22 CET 2010


On Wed, Jan 13, 2010 at 9:38 PM, Dominik 'Rathann' Mierzejewski
<dominik at rangers.eu.org> wrote:
> On Wednesday, 13 January 2010 at 23:50, bcoudurier wrote:
>> Author: bcoudurier
>> Date: Wed Jan 13 23:50:26 2010
>> New Revision: 21205
>>
>> Log:
>> remove useless declarations from mpegts.h
>>
>> Modified:
>> ? ?trunk/libavformat/mpegts.h
>> ? ?trunk/libavformat/mpegtsenc.c
>>
>> Modified: trunk/libavformat/mpegts.h
>> ==============================================================================
>> --- trunk/libavformat/mpegts.h ? ? ? ?Wed Jan 13 23:23:29 2010 ? ? ? ?(r21204)
>> +++ trunk/libavformat/mpegts.h ? ? ? ?Wed Jan 13 23:50:26 2010 ? ? ? ?(r21205)
>> @@ -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 */
>>
>> Modified: trunk/libavformat/mpegtsenc.c
>> ==============================================================================
>> --- trunk/libavformat/mpegtsenc.c ? ? Wed Jan 13 23:23:29 2010 ? ? ? ?(r21204)
>> +++ trunk/libavformat/mpegtsenc.c ? ? Wed Jan 13 23:50:26 2010 ? ? ? ?(r21205)
>> @@ -196,6 +196,8 @@ static void mpegts_write_pat(AVFormatCon
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ?data, q - data);
>> ?}
>>
>> +
>> +
>> ?static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
>> ?{
>> ? ? ?// ? ?MpegTSWrite *ts = s->priv_data;
>
> Cosmetics.
>
>> @@ -240,7 +242,10 @@ static void mpegts_write_pmt(AVFormatCon
>> ? ? ? ? ? ? ?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;
>
> Contains cosmetics. Unrelated?
>
>> @@ -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,
>> +};
>
> Unrelated?

These have already been reverted in r21207



More information about the ffmpeg-cvslog mailing list