From 9a626982f91092c70bdd9a5d244dcdd68669fd27 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 11 Nov 2006 19:43:55 +0000 Subject: dont do startcode search from last syncpoint if there are no errors Originally committed as revision 6969 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/nutdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 13215b78f4..6d8ecbdf9c 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -699,8 +699,10 @@ resync: do{ frame_code= get_byte(bc); - if(frame_code == 'N') //FIXME update pos + if(frame_code == 'N'){ + pos= url_ftell(bc)-1; goto resync; + } //FIXME consider pos_limit and eof size= decode_frame_header(nut, &flags, &pts, &stream_id, frame_code); -- cgit v1.2.3