diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-20 22:11:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-20 22:12:37 +0200 |
commit | f67170e81b79ffbb1a5aa3f218baf906afd136ba (patch) | |
tree | 3f7d052be303a93cafcc7489fb3f54635adaed4a /libavdevice/libdc1394.c | |
parent | 198110d702daf11a9f7db7b0ee53cc4a28ac5869 (diff) | |
download | ffmpeg-f67170e81b79ffbb1a5aa3f218baf906afd136ba.tar.gz |
avdevice/libdc1394: add const to suppress "assignment discards const qualifier from pointer target type" warnings
See: http://fate.ffmpeg.org/log.cgi?time=20150919100330&log=compile&slot=x86_64-archlinux-gcc-enableshared
Found-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice/libdc1394.c')
-rw-r--r-- | libavdevice/libdc1394.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index 6868e9ca7b..d5bbc7c780 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -121,12 +121,12 @@ static const AVClass libdc1394_class = { static inline int dc1394_read_common(AVFormatContext *c, - struct dc1394_frame_format **select_fmt, struct dc1394_frame_rate **select_fps) + const struct dc1394_frame_format **select_fmt, const struct dc1394_frame_rate **select_fps) { dc1394_data* dc1394 = c->priv_data; AVStream* vst; - struct dc1394_frame_format *fmt; - struct dc1394_frame_rate *fps; + const struct dc1394_frame_format *fmt; + const struct dc1394_frame_rate *fps; enum AVPixelFormat pix_fmt; int width, height; AVRational framerate; @@ -293,8 +293,8 @@ static int dc1394_v2_read_header(AVFormatContext *c) dc1394_data* dc1394 = c->priv_data; dc1394camera_list_t *list; int res, i; - struct dc1394_frame_format *fmt = NULL; - struct dc1394_frame_rate *fps = NULL; + const struct dc1394_frame_format *fmt = NULL; + const struct dc1394_frame_rate *fps = NULL; if (dc1394_read_common(c, &fmt, &fps) != 0) return -1; |