[FFmpeg-cvslog] vda: Cast to not discard constant qualifier and silence compiler warning

Himangi Saraogi git at videolan.org
Thu Apr 9 01:37:40 CEST 2015


ffmpeg | branch: master | Himangi Saraogi <himangi774 at gmail.com> | Thu Apr  9 03:58:31 2015 +0530| [df4fca21632a58300dea1b60e5b545d6bf34ac0d] | committer: Michael Niedermayer

vda: Cast to not discard constant qualifier and silence compiler warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df4fca21632a58300dea1b60e5b545d6bf34ac0d
---

 ffmpeg_vda.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg_vda.c b/ffmpeg_vda.c
index b9f0975..d15648d 100644
--- a/ffmpeg_vda.c
+++ b/ffmpeg_vda.c
@@ -73,7 +73,7 @@ static int vda_retrieve_data(AVCodecContext *s, AVFrame *frame)
     }
 
     av_image_copy(vda->tmp_frame->data, vda->tmp_frame->linesize,
-                  data, linesize, vda->tmp_frame->format,
+                  (const uint8_t **)data, linesize, vda->tmp_frame->format,
                   frame->width, frame->height);
 
     ret = av_frame_copy_props(vda->tmp_frame, frame);



More information about the ffmpeg-cvslog mailing list