diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-21 20:15:32 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-22 03:03:48 +0400 |
commit | 005af8ce61d908a0259c9ad88eb2c0c959252979 (patch) | |
tree | ae4afca6b61120487d7cd7202d49350d132a2d52 /doc | |
parent | 4a91962771f3e3ab84d6497c53da0f3675d19eec (diff) |
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]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/muxing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 3209bb89c8..e7ab145077 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); |