[FFmpeg-cvslog] r19230 - trunk/libavformat/img2.c
jai_menon
subversion
Sat Jun 20 11:00:12 CEST 2009
Author: jai_menon
Date: Sat Jun 20 11:00:12 2009
New Revision: 19230
Log:
Print meaningful error messages when url_fopen fails.
Modified:
trunk/libavformat/img2.c
Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c Sat Jun 20 08:09:30 2009 (r19229)
+++ trunk/libavformat/img2.c Sat Jun 20 11:00:12 2009 (r19230)
@@ -264,8 +264,10 @@ static int img_read_packet(AVFormatConte
s->path, s->img_number)<0 && s->img_number > 1)
return AVERROR(EIO);
for(i=0; i<3; i++){
- if (url_fopen(&f[i], filename, URL_RDONLY) < 0)
+ if (url_fopen(&f[i], filename, URL_RDONLY) < 0) {
+ av_log(s1, AV_LOG_ERROR, "Could not open file : %s\n",filename);
return AVERROR(EIO);
+ }
size[i]= url_fsize(f[i]);
if(codec->codec_id != CODEC_ID_RAWVIDEO)
@@ -340,8 +342,10 @@ static int img_write_packet(AVFormatCont
img->path, img->img_number) < 0 && img->img_number>1)
return AVERROR(EIO);
for(i=0; i<3; i++){
- if (url_fopen(&pb[i], filename, URL_WRONLY) < 0)
+ if (url_fopen(&pb[i], filename, URL_WRONLY) < 0) {
+ av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);
return AVERROR(EIO);
+ }
if(codec->codec_id != CODEC_ID_RAWVIDEO)
break;
More information about the ffmpeg-cvslog
mailing list