Mercurial > libavformat.hg
comparison mpegtsenc.c @ 313:622892a75ddb libavformat
support more codecs in MPEG-TS patch by (mru at kth dot se (Mns Rullgrd))
author | michael |
---|---|
date | Wed, 12 Nov 2003 21:56:57 +0000 |
parents | 2d4dcb1d3e21 |
children | 60f897e8dd2d |
comparison
equal
deleted
inserted
replaced
312:8a04d2e1be2f | 313:622892a75ddb |
---|---|
256 program_info_length_ptr[1] = val; | 256 program_info_length_ptr[1] = val; |
257 | 257 |
258 for(i = 0; i < s->nb_streams; i++) { | 258 for(i = 0; i < s->nb_streams; i++) { |
259 AVStream *st = s->streams[i]; | 259 AVStream *st = s->streams[i]; |
260 MpegTSWriteStream *ts_st = st->priv_data; | 260 MpegTSWriteStream *ts_st = st->priv_data; |
261 switch(st->codec.codec_type) { | 261 switch(st->codec.codec_id) { |
262 case CODEC_TYPE_VIDEO: | 262 case CODEC_ID_MPEG1VIDEO: |
263 stream_type = STREAM_TYPE_VIDEO_MPEG2; //XXX/FIXME is this (and the define) correct? | 263 case CODEC_ID_MPEG2VIDEO: |
264 stream_type = STREAM_TYPE_VIDEO_MPEG2; | |
264 break; | 265 break; |
265 case CODEC_TYPE_AUDIO: | 266 case CODEC_ID_MPEG4: |
267 stream_type = STREAM_TYPE_VIDEO_MPEG4; | |
268 break; | |
269 case CODEC_ID_H264: | |
270 stream_type = STREAM_TYPE_VIDEO_H264; | |
271 break; | |
272 case CODEC_ID_MP2: | |
273 case CODEC_ID_MP3: | |
266 stream_type = STREAM_TYPE_AUDIO_MPEG1; | 274 stream_type = STREAM_TYPE_AUDIO_MPEG1; |
275 break; | |
276 case CODEC_ID_AAC: | |
277 stream_type = STREAM_TYPE_AUDIO_AAC; | |
278 break; | |
279 case CODEC_ID_AC3: | |
280 stream_type = STREAM_TYPE_AUDIO_AC3; | |
267 break; | 281 break; |
268 default: | 282 default: |
269 stream_type = STREAM_TYPE_PRIVATE_DATA; | 283 stream_type = STREAM_TYPE_PRIVATE_DATA; |
270 break; | 284 break; |
271 } | 285 } |