fix bug in msx264

fix segfault when sending a dtmf when call is not yet established.


git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@201 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2008-12-11 16:39:36 +00:00
parent 7ec72d7f10
commit 9b0a0b67ce
2 changed files with 5 additions and 3 deletions

View file

@ -457,7 +457,7 @@ static int nalusToFrame(DecData *d, MSQueue *naluq, bool_t *new_sps_pps){
*dst++=1;
*dst++=*src++;
while(src<(im->b_wptr-3)){
if (src[0]==0 && src[1]==0 && src[2]<=3){
if (src[0]==0 && src[1]==0 && src[2]<3){
*dst++=0;
*dst++=0;
*dst++=3;

View file

@ -440,7 +440,9 @@ void ring_stop(RingStream *stream){
int audio_stream_send_dtmf(AudioStream *stream, char dtmf)
{
ms_filter_call_method(stream->rtpsend,MS_RTP_SEND_SEND_DTMF,&dtmf);
ms_filter_call_method(stream->dtmfgen,MS_DTMF_GEN_PUT,&dtmf);
if (stream->rtpsend)
ms_filter_call_method(stream->rtpsend,MS_RTP_SEND_SEND_DTMF,&dtmf);
if (stream->dtmfgen)
ms_filter_call_method(stream->dtmfgen,MS_DTMF_GEN_PUT,&dtmf);
return 0;
}