Commit 16ceb0de authored by Laurent Aimar's avatar Laurent Aimar

Fixed segfault when using sfilter in transocde (close #1663)

parent ce4c05bb
...@@ -1980,7 +1980,10 @@ static int transcode_video_process( sout_stream_t *p_stream, ...@@ -1980,7 +1980,10 @@ static int transcode_video_process( sout_stream_t *p_stream,
} }
} }
fmt = filter_chain_GetFmtOut( id->p_f_chain )->video; if( filter_chain_GetLength( id->p_f_chain ) > 0 )
fmt = filter_chain_GetFmtOut( id->p_f_chain )->video;
else
fmt = id->p_decoder->fmt_out.video;
/* FIXME (shouldn't have to be done here) */ /* FIXME (shouldn't have to be done here) */
fmt.i_sar_num = fmt.i_aspect * fmt.i_height / fmt.i_width; fmt.i_sar_num = fmt.i_aspect * fmt.i_height / fmt.i_width;
......
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