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:
90f06ce
)
Return AVERROR(EINVAL) when invalid width and/or height are specified to
author
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Fri, 20 Jul 2007 15:09:10 +0000
(15:09 +0000)
committer
Panagiotis Issaris
<takis.issaris@uhasselt.be>
Fri, 20 Jul 2007 15:09:10 +0000
(15:09 +0000)
avcodec_open.
Originally committed as revision 9770 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
cd7bc1c
..
fd757fd
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-847,6
+847,7
@@
int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
if((avctx->coded_width||avctx->coded_height) && avcodec_check_dimensions(avctx,avctx->coded_width,avctx->coded_height)){
av_freep(&avctx->priv_data);
+ ret = AVERROR(EINVAL);
goto end;
}