Revision 66e5b1df libavformat/nutdec.c
libavformat/nutdec.c | ||
---|---|---|
121 | 121 |
if(pos >= 0) |
122 | 122 |
avio_seek(bc, pos, SEEK_SET); //note, this may fail if the stream is not seekable, but that should not matter, as in this case we simply start where we currently are |
123 | 123 |
|
124 |
while(!url_feof(bc)){
|
|
124 |
while(!bc->eof_reached){
|
|
125 | 125 |
state= (state<<8) | avio_r8(bc); |
126 | 126 |
if((state>>56) != 'N') |
127 | 127 |
continue; |
... | ... | |
790 | 790 |
pos-=8; |
791 | 791 |
}else{ |
792 | 792 |
frame_code = avio_r8(bc); |
793 |
if(url_feof(bc))
|
|
793 |
if(bc->eof_reached)
|
|
794 | 794 |
return -1; |
795 | 795 |
if(frame_code == 'N'){ |
796 | 796 |
tmp= frame_code; |
Also available in: Unified diff