summaryrefslogtreecommitdiffstats
path: root/libavcodec/avpacket.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-011-0/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: h264: error out on invalid bitdepth. aacsbr: use a swap index for the Y matrix rather than copy buffers. huffyuv: do not abort on unknown pix_fmt; instead, return an error. lcl: return negative error codes on decode_init() errors. rtpenc: Use MB info side data for splitting H263 packets for RFC 2190 h263enc: Add an option for outputting info about MBs as side data avpacket: Add a function for shrinking already allocated side data nellymoserdec: Saner and faster IMDCT windowing Conflicts: doc/APIchanges libavcodec/avpacket.c libavcodec/version.h Merged-by: Michael Niedermayer <[email protected]>
| * avpacket: Add a function for shrinking already allocated side dataMartin Storsjö2012-03-011-0/+16
| | | | | | | | Signed-off-by: Martin Storsjö <[email protected]>
* | Fix leaking of side data.Reimar Döffinger2012-01-141-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]>
* | Fix av_packet_split_side_data.Reimar Döffinger2011-11-061-1/+2
| | | | | | | | | | | | | | | | 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 <[email protected]>
* | Merge/split side data.Michael Niedermayer2011-05-211-1/+80
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-171-11/+92
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * make av_dup_packet() more cautious on allocation failuresKostya Shishkov2011-04-151-7/+19
| | | | | | | | Signed-off-by: Luca Barbato <[email protected]>
| * introduce side information for AVPacketKostya Shishkov2011-04-151-11/+80
| | | | | | | | Signed-off-by: Luca Barbato <[email protected]>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <[email protected]>
* Add a av_grow_packet function, to be used by code that mergesReimar Döffinger2010-11-211-0/+18
| | | | | | 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-111-2/+2
| | | | 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-111-5/+7
| | | | | | | 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-301-0/+8
| | | | 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-111-1/+1
| | | | | | 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-081-0/+7
| | | | | | 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-071-0/+82
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