summaryrefslogtreecommitdiff
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-11-11 19:43:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-11-11 19:43:55 +0000
commit9a626982f91092c70bdd9a5d244dcdd68669fd27 (patch)
tree983382d8fd85241ce9e99cd09da90e7243712996 /libavformat/nutdec.c
parentfaf7cbf11083e262c15bd4985fc1d7d63dcf1f97 (diff)
dont do startcode search from last syncpoint if there are no errors
Originally committed as revision 6969 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c4
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);