From ad4ad27fb6d352a874d97d42ba95ae0b5cbfa860 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 1 Oct 2010 17:43:27 +0000 Subject: rtsp/rtpdec: Allow rtp_parse_packet to take ownership of the packet buffer Do the same change for ff_rdt_parse_packet, too, to keep the interfaces similar. Originally committed as revision 25289 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/rdt.c') diff --git a/libavformat/rdt.c b/libavformat/rdt.c index 8baceca153..303a2a8145 100644 --- a/libavformat/rdt.c +++ b/libavformat/rdt.c @@ -337,8 +337,9 @@ get_cache: int ff_rdt_parse_packet(RDTDemuxContext *s, AVPacket *pkt, - const uint8_t *buf, int len) + uint8_t **bufptr, int len) { + uint8_t *buf = bufptr ? *bufptr : NULL; int seq_no, flags = 0, stream_id, set_id, is_keyframe; uint32_t timestamp; int rv= 0; -- cgit v1.2.3