git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
189230a
)
vfwcap: Return PIX_FMT_NONE instead of -1 on error.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Thu, 30 Jul 2009 16:18:33 +0000
(16:18 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Thu, 30 Jul 2009 16:18:33 +0000
(16:18 +0000)
Originally committed as revision 19542 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/vfwcap.c
patch
|
blob
|
history
diff --git
a/libavdevice/vfwcap.c
b/libavdevice/vfwcap.c
index
34beac4
..
eb05588
100644
(file)
--- 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);