summaryrefslogtreecommitdiff
path: root/libavdevice/v4l.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-06 09:37:04 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-06 09:37:04 +0000
commit6ce9b4310cf1eba1a356191f30460a97e6653b91 (patch)
tree4211e63439fb2ee8a0f063fe62b6ef1a4a0ad393 /libavdevice/v4l.c
parent899a507fa690e533f62e95a0c5d1caf487cf72ce (diff)
Remove use of the deprecated function avcodec_check_dimensions(), use
av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/v4l.c')
-rw-r--r--libavdevice/v4l.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/v4l.c b/libavdevice/v4l.c
index d0ef7d5e04..50a113a72a 100644
--- a/libavdevice/v4l.c
+++ b/libavdevice/v4l.c
@@ -22,6 +22,7 @@
#undef __STRICT_ANSI__ //workaround due to broken kernel headers
#include "config.h"
#include "libavutil/rational.h"
+#include "libavcore/imgutils.h"
#include "libavformat/avformat.h"
#include "libavcodec/dsputil.h"
#include <unistd.h>
@@ -116,7 +117,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
}
}
- if(avcodec_check_dimensions(s1, s->video_win.width, s->video_win.height) < 0)
+ if(av_check_image_size(s->video_win.width, s->video_win.height, 0, s1) < 0)
return -1;
desired_palette = -1;