diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-04 01:12:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-03 16:40:11 +0200 |
commit | 5b56ad03fa3c580e38322c902891a77ecc93686b (patch) | |
tree | e0ad41a78ddd4ffe29bff1558c4e761bce07fa9d /libavformat/mpegts.c | |
parent | 15957b197a63d08c33c34f08ef8b161335736914 (diff) | |
download | ffmpeg-5b56ad03fa3c580e38322c902891a77ecc93686b.tar.gz |
Reimplement stream probe try #2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 803acb3ce3..71e8d7318f 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -704,10 +704,10 @@ static int mpegts_push_data(MpegTSFilter *filter, code != 0x1ff && code != 0x1f2 && /* program_stream_directory, DSMCC_stream */ code != 0x1f8) { /* ITU-T Rec. H.222.1 type E stream */ pes->state = MPEGTS_PESHEADER; - if (pes->st->codec->codec_id == CODEC_ID_NONE) { + if (!pes->st->request_probe) { av_dlog(pes->stream, "pid=%x stream_type=%x probing\n", pes->pid, pes->stream_type); - pes->st->codec->codec_id = CODEC_ID_PROBE; + pes->st->request_probe= 1; } } else { pes->state = MPEGTS_PAYLOAD; |