[FFmpeg-cvslog] lavf: add const qualifier to AVCodecDescriptor pointer in is_intra_only().
Clément Bœsch
git at videolan.org
Tue Aug 21 13:47:13 CEST 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Aug 21 13:47:43 2012 +0200| [3dba9e19c8836cbb156953df20acdc3f52d0d568] | committer: Clément Bœsch
lavf: add const qualifier to AVCodecDescriptor pointer in is_intra_only().
Fix "assignment discards ‘const’ qualifier from pointer target type" warnings.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3dba9e19c8836cbb156953df20acdc3f52d0d568
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 38d2e08..eec302b 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;
More information about the ffmpeg-cvslog
mailing list