summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-07-30 16:18:33 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-07-30 16:18:33 +0000
commitd40b45e8b0a05e87a2e0c61403fe65534a5158d7 (patch)
treecf97c19322cae82f73f9641583eee70864e63d84 /libavdevice
parent189230ad678de95ee5940cabd7fd579102f1d0f6 (diff)
vfwcap: Return PIX_FMT_NONE instead of -1 on error.
Originally committed as revision 19542 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/vfwcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 34beac4e90..eb0558858e 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -66,7 +66,7 @@ static enum PixelFormat vfw_pixfmt(DWORD biCompression, WORD biBitCount)
return PIX_FMT_RGB32;
}
}
- return -1;
+ return PIX_FMT_NONE;
}
#define dstruct(pctx, sname, var, type) \
@@ -326,7 +326,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_set_pts_info(st, 32, 1, 1000);
- if(codec->pix_fmt == -1) {
+ if(codec->pix_fmt == PIX_FMT_NONE) {
av_log(s, AV_LOG_ERROR, "Unknown compression type. "
"Please report verbose (-v 9) debug information.\n");
vfw_read_close(s);