aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-06-02 21:48:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-06-02 21:48:49 +0000
commit165f503a2782240405bad06ad5678f64afbc2a2d (patch)
tree65e248e5e3e31b394c8fd773b64ce99d4bc63972 /libavformat/mpegts.c
parentd287b04b6daab43575111270aace0fab9fdf84df (diff)
downloadffmpeg-165f503a2782240405bad06ad5678f64afbc2a2d.tar.gz
correct implementation of "try with auto_guess if first detection fails"
(untested) Originally committed as revision 9175 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index be431b1a27..35842343df 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1271,10 +1271,10 @@ static int mpegts_read_header(AVFormatContext *s,
handle_packets(ts, s->probesize);
}
- /* if could not find service, exit */
+ /* if could not find service, enable auto_guess */
if (ts->set_service_ret != 0)
- return -1;
+ ts->auto_guess = 1;
#ifdef DEBUG_SI
av_log(ts->stream, AV_LOG_DEBUG, "tuning done\n");