diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-04-22 13:19:04 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-04-24 16:10:06 +0200 |
commit | ecc5c4db2dd3a0f328d95df89daa59f78b4b2810 (patch) | |
tree | 910b6c6f98c7a08519b40c233b8354abe047069e /doc | |
parent | f25609ff06b093d82548c92fc2031cd2e66c20d3 (diff) | |
download | ffmpeg-streaming-ecc5c4db2dd3a0f328d95df89daa59f78b4b2810.zip ffmpeg-streaming-ecc5c4db2dd3a0f328d95df89daa59f78b4b2810.tar.gz |
doc/examples/output: Cast pointer to the right (const) type
doc/examples/output.c:512:33: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/examples/output.c b/doc/examples/output.c index bb0da30..59e7b95 100644 --- a/doc/examples/output.c +++ b/doc/examples/output.c @@ -509,8 +509,9 @@ static AVFrame *get_video_frame(OutputStream *ost) } } fill_yuv_image(ost->tmp_frame, ost->next_pts, c->width, c->height); - sws_scale(ost->sws_ctx, ost->tmp_frame->data, ost->tmp_frame->linesize, - 0, c->height, ost->frame->data, ost->frame->linesize); + sws_scale(ost->sws_ctx, (const uint8_t * const *) ost->tmp_frame->data, + ost->tmp_frame->linesize, 0, c->height, ost->frame->data, + ost->frame->linesize); } else { fill_yuv_image(ost->frame, ost->next_pts, c->width, c->height); } |