Commit 290fc84f authored by Gildas Bazin's avatar Gildas Bazin

* modules/stream_out/transcode.c: proper subpicture scaling using sample aspect ratio information.

parent 5cf4eb44
......@@ -1608,6 +1608,11 @@ static int transcode_video_process( sout_stream_t *p_stream,
else
p_fmt = &id->p_decoder->fmt_out.video;
/* FIXME (shouldn't have to be done here) */
p_fmt->i_sar_num = p_fmt->i_aspect *
p_fmt->i_height / p_fmt->i_width;
p_fmt->i_sar_den = VOUT_ASPECT_FACTOR;
spu_RenderSubpictures( p_sys->p_spu, p_fmt, p_pic, p_pic, p_subpic,
i_scale_width, i_scale_height );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment