1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00
Originally committed as revision 6971 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2006-11-11 19:47:58 +00:00
parent c328f313d8
commit 7b0d75fc40

View File

@@ -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;