[FFmpeg-cvslog] examples/muxing: cast sws_scale() argument to the expected one

Stefano Sabatini git at videolan.org
Wed Aug 22 01:05:56 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Aug 21 18:15:32 2012 +0200| [005af8ce61d908a0259c9ad88eb2c0c959252979] | committer: Stefano Sabatini

examples/muxing: cast sws_scale() argument to the expected one

Fix warnings:
muxing.c: In function ‘write_video_frame’:
muxing.c:326:23: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default]

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

 doc/examples/muxing.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 3209bb8..e7ab145 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -340,7 +340,8 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
                 }
             }
             fill_yuv_image(tmp_picture, frame_count, c->width, c->height);
-            sws_scale(img_convert_ctx, tmp_picture->data, tmp_picture->linesize,
+            sws_scale(img_convert_ctx,
+                      (const uint8_t * const *)tmp_picture->data, tmp_picture->linesize,
                       0, c->height, picture->data, picture->linesize);
         } else {
             fill_yuv_image(picture, frame_count, c->width, c->height);



More information about the ffmpeg-cvslog mailing list