Mercurial > libavformat.hg
comparison img2.c @ 764:cdb845a57ae4 libavformat
drop most url_fileno() calls (allows to use ByteIOContext directly in caller apps instead of URLProtocol)
author | aurel |
---|---|
date | Thu, 19 May 2005 00:06:27 +0000 |
parents | af4e24d6310c |
children | feca73904e67 |
comparison
equal
deleted
inserted
replaced
763:635cd38a1e87 | 764:cdb845a57ae4 |
---|---|
242 s->path, s->img_number)<0 && s->img_number > 1) | 242 s->path, s->img_number)<0 && s->img_number > 1) |
243 return AVERROR_IO; | 243 return AVERROR_IO; |
244 for(i=0; i<3; i++){ | 244 for(i=0; i<3; i++){ |
245 if (url_fopen(f[i], filename, URL_RDONLY) < 0) | 245 if (url_fopen(f[i], filename, URL_RDONLY) < 0) |
246 return AVERROR_IO; | 246 return AVERROR_IO; |
247 size[i]= url_filesize(url_fileno(f[i])); | 247 size[i]= url_fsize(f[i]); |
248 | 248 |
249 if(codec->codec_id != CODEC_ID_RAWVIDEO) | 249 if(codec->codec_id != CODEC_ID_RAWVIDEO) |
250 break; | 250 break; |
251 filename[ strlen(filename) - 1 ]= 'U' + i; | 251 filename[ strlen(filename) - 1 ]= 'U' + i; |
252 } | 252 } |