@ -1757,7 +1757,7 @@ static int mpegts_resync(AVFormatContext *s)
}
/* return -1 if error or EOF. Return 0 if OK. */
static int read_packet ( AVFormatContext * s , uint8_t * buf , int raw_packet_size , uint8_t * * data )
static int read_packet ( AVFormatContext * s , uint8_t * buf , int raw_packet_size , const uint8_t * * data )
{
AVIOContext * pb = s - > pb ;
int len ;
@ -1793,7 +1793,7 @@ static int handle_packets(MpegTSContext *ts, int nb_packets)
{
AVFormatContext * s = ts - > stream ;
uint8_t packet [ TS_PACKET_SIZE + FF_INPUT_BUFFER_PADDING_SIZE ] ;
uint8_t * data ;
const uint8_t * data ;
int packet_num , ret = 0 ;
if ( avio_tell ( s - > pb ) ! = ts - > last_pos ) {
@ -1930,7 +1930,7 @@ static int mpegts_read_header(AVFormatContext *s)
int64_t pcrs [ 2 ] , pcr_h ;
int packet_count [ 2 ] ;
uint8_t packet [ TS_PACKET_SIZE ] ;
uint8_t * data ;
const uint8_t * data ;
/* only read packets */
@ -1992,7 +1992,7 @@ static int mpegts_raw_read_packet(AVFormatContext *s,
int64_t pcr_h , next_pcr_h , pos ;
int pcr_l , next_pcr_l ;
uint8_t pcr_buf [ 12 ] ;
uint8_t * data ;
const uint8_t * data ;
if ( av_new_packet ( pkt , TS_PACKET_SIZE ) < 0 )
return AVERROR ( ENOMEM ) ;