aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-11-11 19:47:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-11-11 19:47:58 +0000
commit7b0d75fc400e97e8aae7c5b02f3b3294e25db09a (patch)
treeecc0cedd348ec6fa7046b4a400cd731e6e05fe7c /libavformat/nutdec.c
parentc328f313d876350f95b317a698c344b1cb8bfedd (diff)
downloadffmpeg-7b0d75fc400e97e8aae7c5b02f3b3294e25db09a.tar.gz
simplify
Originally committed as revision 6971 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 6d8ecbdf9c..280ff12740 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -482,15 +482,13 @@ static int nut_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* main header */
pos=0;
- for(;;){
+ do{
pos= find_startcode(bc, MAIN_STARTCODE, pos)+1;
if (pos<0+1){
av_log(s, AV_LOG_ERROR, "no main startcode found\n");
return -1;
}
- if(decode_main_header(nut) >= 0)
- break;
- }
+ }while(decode_main_header(nut) < 0);
/* stream headers */
pos=0;