diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-11-11 19:43:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-11-11 19:43:55 +0000 |
commit | 9a626982f91092c70bdd9a5d244dcdd68669fd27 (patch) | |
tree | 983382d8fd85241ce9e99cd09da90e7243712996 | |
parent | faf7cbf11083e262c15bd4985fc1d7d63dcf1f97 (diff) | |
download | ffmpeg-9a626982f91092c70bdd9a5d244dcdd68669fd27.tar.gz |
dont do startcode search from last syncpoint if there are no errors
Originally committed as revision 6969 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/nutdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |