OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c328f31
)
simplify
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 11 Nov 2006 19:47:58 +0000
(19:47 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 11 Nov 2006 19:47:58 +0000
(19:47 +0000)
Originally committed as revision 6971 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nutdec.c
patch
|
blob
|
history
diff --git
a/libavformat/nutdec.c
b/libavformat/nutdec.c
index
6d8ecbd
..
280ff12
100644
(file)
--- 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;