@ -33,6 +33,8 @@
# include "libavformat/os_support.h"
# include "libavformat/os_support.h"
# include "libavformat/rtpdec.h"
# include "libavformat/rtpdec.h"
# include "libavformat/rtsp.h"
# include "libavformat/rtsp.h"
// XXX for ffio_open_dyn_packet_buffer, to be removed
# include "libavformat/avio_internal.h"
# include "libavutil/avstring.h"
# include "libavutil/avstring.h"
# include "libavutil/lfg.h"
# include "libavutil/lfg.h"
# include "libavutil/random_seed.h"
# include "libavutil/random_seed.h"
@ -2389,7 +2391,7 @@ static int http_prepare_data(HTTPContext *c)
max_packet_size = RTSP_TCP_MAX_PACKET_SIZE ;
max_packet_size = RTSP_TCP_MAX_PACKET_SIZE ;
else
else
max_packet_size = url_get_max_packet_size ( c - > rtp_handles [ c - > packet_stream_index ] ) ;
max_packet_size = url_get_max_packet_size ( c - > rtp_handles [ c - > packet_stream_index ] ) ;
ret = url _open_dyn_packet_buf( & ctx - > pb , max_packet_size ) ;
ret = ffio _open_dyn_packet_buf( & ctx - > pb , max_packet_size ) ;
} else {
} else {
ret = avio_open_dyn_buf ( & ctx - > pb ) ;
ret = avio_open_dyn_buf ( & ctx - > pb ) ;
}
}
@ -3444,7 +3446,7 @@ static int rtp_new_av_stream(HTTPContext *c,
c - > stream - > filename , stream_index , c - > protocol ) ;
c - > stream - > filename , stream_index , c - > protocol ) ;
/* normally, no packets should be output here, but the packet size may be checked */
/* normally, no packets should be output here, but the packet size may be checked */
if ( url _open_dyn_packet_buf( & ctx - > pb , max_packet_size ) < 0 ) {
if ( ffio _open_dyn_packet_buf( & ctx - > pb , max_packet_size ) < 0 ) {
/* XXX: close stream */
/* XXX: close stream */
goto fail ;
goto fail ;
}
}