Mercurial > libavformat.hg
comparison nutdec.c @ 1480:2355202d4c4c libavformat
simplify
author | michael |
---|---|
date | Sat, 11 Nov 2006 19:47:58 +0000 |
parents | 6a33963be49a |
children | 20438d25cf8c |
comparison
equal
deleted
inserted
replaced
1479:6a33963be49a | 1480:2355202d4c4c |
---|---|
480 | 480 |
481 nut->avf= s; | 481 nut->avf= s; |
482 | 482 |
483 /* main header */ | 483 /* main header */ |
484 pos=0; | 484 pos=0; |
485 for(;;){ | 485 do{ |
486 pos= find_startcode(bc, MAIN_STARTCODE, pos)+1; | 486 pos= find_startcode(bc, MAIN_STARTCODE, pos)+1; |
487 if (pos<0+1){ | 487 if (pos<0+1){ |
488 av_log(s, AV_LOG_ERROR, "no main startcode found\n"); | 488 av_log(s, AV_LOG_ERROR, "no main startcode found\n"); |
489 return -1; | 489 return -1; |
490 } | 490 } |
491 if(decode_main_header(nut) >= 0) | 491 }while(decode_main_header(nut) < 0); |
492 break; | |
493 } | |
494 | 492 |
495 /* stream headers */ | 493 /* stream headers */ |
496 pos=0; | 494 pos=0; |
497 for(inited_stream_count=0; inited_stream_count < s->nb_streams;){ | 495 for(inited_stream_count=0; inited_stream_count < s->nb_streams;){ |
498 pos= find_startcode(bc, STREAM_STARTCODE, pos)+1; | 496 pos= find_startcode(bc, STREAM_STARTCODE, pos)+1; |