diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-08-21 13:47:43 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-08-21 13:47:43 +0200 |
commit | 3dba9e19c8836cbb156953df20acdc3f52d0d568 (patch) | |
tree | 13f9fc49849eaba826c5ee706bc7d5bb876b2868 | |
parent | 2e2d0b1142945edeecf39fadb0e012f233288e00 (diff) | |
download | ffmpeg-3dba9e19c8836cbb156953df20acdc3f52d0d568.tar.gz |
lavf: add const qualifier to AVCodecDescriptor pointer in is_intra_only().
Fix "assignment discards ‘const’ qualifier from pointer target type" warnings.
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 38d2e08b4c..eec302b263 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -877,7 +877,7 @@ static void compute_frame_duration(int *pnum, int *pden, AVStream *st, } static int is_intra_only(AVCodecContext *enc){ - AVCodecDescriptor *desc; + const AVCodecDescriptor *desc; if(enc->codec_type != AVMEDIA_TYPE_VIDEO) return 1; |