try to filter _all_ PATs if no SDT could be found patch by (<gbazin at altern dot org>)

+ mpegtsenc.c compile fix by me

Originally committed as revision 1995 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2003-06-28 23:44:09 +00:00
parent d3b150363c
commit ce34182dd7
3 changed files with 29 additions and 21 deletions
+2 -2
View File
@@ -259,10 +259,10 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
MpegTSWriteStream *ts_st = st->priv_data;
switch(st->codec.codec_type) {
case CODEC_TYPE_VIDEO:
stream_type = STREAM_TYPE_VIDEO;
stream_type = STREAM_TYPE_VIDEO_MPEG2; //XXX/FIXME is this (and the define) correct?
break;
case CODEC_TYPE_AUDIO:
stream_type = STREAM_TYPE_AUDIO;
stream_type = STREAM_TYPE_AUDIO_MPEG1;
break;
default:
stream_type = STREAM_TYPE_PRIVATE_DATA;