Commit d650147f authored by Laurent Aimar's avatar Laurent Aimar

Fixed the format used for subtitles blending when transcoding.

With [447719222b4a2496482571f1725aaf36b3d2d19e], it closes #5755 and #5756.
parent 45ee0e5c
...@@ -680,11 +680,14 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id, ...@@ -680,11 +680,14 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
/* Check if we have a subpicture to overlay */ /* Check if we have a subpicture to overlay */
if( p_sys->p_spu ) if( p_sys->p_spu )
{ {
video_format_t fmt; video_format_t fmt = id->p_encoder->fmt_in.video;
if( filter_chain_GetLength( id->p_f_chain ) > 0 ) if( fmt.i_visible_width <= 0 || fmt.i_visible_height <= 0 )
fmt = filter_chain_GetFmtOut( id->p_f_chain )->video; {
else fmt.i_visible_width = fmt.i_width;
fmt = id->p_decoder->fmt_out.video; fmt.i_visible_height = fmt.i_height;
fmt.i_x_offset = 0;
fmt.i_y_offset = 0;
}
subpicture_t *p_subpic = spu_Render( p_sys->p_spu, NULL, &fmt, &fmt, subpicture_t *p_subpic = spu_Render( p_sys->p_spu, NULL, &fmt, &fmt,
p_pic->date, p_pic->date, false ); p_pic->date, p_pic->date, false );
......
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