Revision a1f42882

View differences:

libavformat/mpegtsenc.c
196 196
                          data, q - data);
197 197
}
198 198

  
199

  
200

  
201 199
static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
202 200
{
203 201
    //    MpegTSWrite *ts = s->priv_data;
......
242 240
            stream_type = STREAM_TYPE_AUDIO_AAC;
243 241
            break;
244 242
        case CODEC_ID_AC3:
245
            if (!strcmp(s->oformat->name, "dvb"))
246
                stream_type = STREAM_TYPE_PRIVATE_DATA;
247
            else
248
                stream_type = STREAM_TYPE_AUDIO_AC3;
243
            stream_type = STREAM_TYPE_AUDIO_AC3;
249 244
            break;
250 245
        default:
251 246
            stream_type = STREAM_TYPE_PRIVATE_DATA;
......
891 886
    mpegts_write_packet,
892 887
    mpegts_write_end,
893 888
};
894

  
895

  
896
AVOutputFormat dvb_muxer = {
897
    "dvb",
898
    NULL_IF_CONFIG_SMALL("DVB style MPEG-2 transport stream format"),
899
    "video/x-mpegts",
900
    "dvb",
901
    sizeof(MpegTSWrite),
902
    CODEC_ID_MP2,
903
    CODEC_ID_MPEG2VIDEO,
904
    mpegts_write_header,
905
    mpegts_write_packet,
906
    mpegts_write_end,
907
};

Also available in: Unified diff