Commit 906a3bfe authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

- Fix obvious crash in TCP/RTP/AVP

- Remove an useless variable
parent 54b1dfae
...@@ -236,7 +236,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -236,7 +236,7 @@ static int Open( vlc_object_t *p_this )
break; break;
case IPPROTO_TCP: case IPPROTO_TCP:
p_sys = net_ConnectTCP( p_access, psz_server_addr, i_server_port ); p_sys->fd = net_ConnectTCP( p_access, psz_server_addr, i_server_port );
p_sys->b_framed_rtp = VLC_TRUE; p_sys->b_framed_rtp = VLC_TRUE;
break; break;
...@@ -721,8 +721,7 @@ static block_t *BlockChoose( access_t *p_access ) ...@@ -721,8 +721,7 @@ static block_t *BlockChoose( access_t *p_access )
/* Parse the header and make some verifications. /* Parse the header and make some verifications.
* See RFC 3550. */ * See RFC 3550. */
i_rtp_version = ( p_block->p_buffer[0] & 0xC0 ) >> 6; i_rtp_version = p_block->p_buffer[0] >> 6;
i_CSRC_count = ( p_block->p_buffer[0] & 0x0F );
i_payload_type = ( p_block->p_buffer[1] & 0x7F ); i_payload_type = ( p_block->p_buffer[1] & 0x7F );
if( i_rtp_version != 2 ) if( i_rtp_version != 2 )
......
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