Skip to content
Snippets Groups Projects
Commit ecc5c4db authored by Diego Biurrun's avatar Diego Biurrun
Browse files

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
parent f25609ff
No related branches found
No related tags found
No related merge requests found
...@@ -509,8 +509,9 @@ static AVFrame *get_video_frame(OutputStream *ost) ...@@ -509,8 +509,9 @@ static AVFrame *get_video_frame(OutputStream *ost)
} }
} }
fill_yuv_image(ost->tmp_frame, ost->next_pts, c->width, c->height); 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, sws_scale(ost->sws_ctx, (const uint8_t * const *) ost->tmp_frame->data,
0, c->height, ost->frame->data, ost->frame->linesize); ost->tmp_frame->linesize, 0, c->height, ost->frame->data,
ost->frame->linesize);
} else { } else {
fill_yuv_image(ost->frame, ost->next_pts, c->width, c->height); fill_yuv_image(ost->frame, ost->next_pts, c->width, c->height);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment