linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] mediastreamer videostream seg fault if format==MS_


From: Christian Spielberger
Subject: [Linphone-developers] mediastreamer videostream seg fault if format==MS_PIX_FMT_UNKNOWN
Date: Tue, 14 Mar 2017 14:40:13 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

I have a segfault at
mediastreamer2/src/voip/videostream.c:562

because pf.fmt==NULL.

--------------------
455 static void configure_video_source(VideoStream *stream){
...
559             if (format==MS_MJPEG){
560                     stream->pixconv=ms_filter_new(MS_MJPEG_DEC_ID);
561             }else if (format==MS_PIX_FMT_UNKNOWN){
562                     stream->pixconv = 
ms_filter_create_decoder(pf.fmt->encoding);
563             }else{
564                     stream->pixconv = ms_filter_new(MS_PIX_CONV_ID);
...
}
--------------------

The pointer pf.fmt is only initialized for the "is_player" case. Don't ask me
how to reproduce this. We are using our own video encoding/decoding plugin for
H.264 and MPEG4. Anyway, the segfault should not happen.

Regards,
Christian Spielberger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]