Commit e1ee7498 authored by Ghislain MARY's avatar Ghislain MARY

Do not force the output to YUV420P when it performs the decoding.

parent dcd95ba9
......@@ -944,9 +944,13 @@ int video_stream_start_with_source_and_output(VideoStream *stream, RtpProfile *p
/*force the decoder to output YUV420P */
if (stream->output_performs_decoding) {
format = mime_type_to_pix_format(pt->mime_type);
} else {
/*force the decoder to output YUV420P */
format = MS_YUV420P;
ms_filter_call_method(stream->ms.decoder, MS_FILTER_SET_PIX_FMT, &format);
/*configure the display window */
if(stream->output != NULL) {
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