summaryrefslogtreecommitdiff
path: root/libavcodec/avpacket.c
Commit message (Collapse)AuthorAge
...
| * avpacket: Add a function for shrinking already allocated side dataMartin Storsjö2012-03-01
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Fix leaking of side data.Reimar Döffinger2012-01-14
| | | | | | | | | | | | | | | | | | | | | | | | While we correctly "register" the side data when we split it, the application (in this case FFmpeg) might not update the AVPacket pool it uses to finally free the packet, thus causing a leak. This also makes the av_dup_packet unnecessary which could cause an even worse leak in this situation. Also change the code to not modify the user-provide AVPacket at all. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Fix av_packet_split_side_data.Reimar Döffinger2011-11-06
| | | | | | | | | | | | | | | | p cannot be calculated before av_dup_packet since that one might change avpkt->data, causing invalid reads and a non-working range check. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge/split side data.Michael Niedermayer2011-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ac3dec: fix processing of delta bit allocation information. vc1: fix fate-vc1 after previous commit. wmv3dec: fix playback of complex WMV3 files using simple_idct. make av_dup_packet() more cautious on allocation failures make containers pass palette change in AVPacket introduce side information for AVPacket Politic commits that have not been pulled: Update regtest checksums after revision 6001dad. Replace more FFmpeg references by Libav. Replace references to ffmpeg-devel with libav-devel; fix roundup URL. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * make av_dup_packet() more cautious on allocation failuresKostya Shishkov2011-04-15
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * introduce side information for AVPacketKostya Shishkov2011-04-15
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add a av_grow_packet function, to be used by code that mergesReimar Döffinger2010-11-21
| | | | | | palette and video data packets to get rid of PaletteControl. Originally committed as revision 25776 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2009-12-11
| | | | Originally committed as revision 20802 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure av_new_packet() initializes the data and destruct pointers.Michael Niedermayer2009-12-11
| | | | | | | Some code does call av_free_packet() on failed av_new_packets(), this prevents the freeing of uninitialized pointers. Originally committed as revision 20801 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export av_free_packet().Ramiro Polla2009-04-30
| | | | Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of av_destruct_packet_nofree and use NULL instead.Reimar Döffinger2009-04-11
| | | | | | It is still used in comparisons to keep ABI compatibility. Originally committed as revision 18431 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_shrink_packet function for use in av_get_packet that reduces pkt->sizeReimar Döffinger2009-04-08
| | | | | | and ensures the following padding is correctly initialized to 0. Originally committed as revision 18378 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move av_packet_*() functions from libavformat/ to libavcodec/, where theThilo Borgmann2009-04-07
AVPacket structure now resides also. Patch by Thilo Borgmann thilo.borgmann googlemail com, see the mailinglist thread "Google Summer of Code participation" for additional discussion. Originally committed as revision 18353 to svn://svn.ffmpeg.org/ffmpeg/trunk