summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* mpegvideo: remove an unneeded call to avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | ff_mpeg_unref_picture() already resets the frame.
* lavc: call av_frame_unref() instead of avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | avcodec_get_frame_defaults() will be deprecated.
* lavc: deprecate avcodec_free_frame()Anton Khirnov2013-12-11
| | | | av_frame_free() should be used instead.
* Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov2013-12-11
|
* hevc: set time_base when possibleGuillaume Martres2013-12-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: store the VPS list as an AVBufferRef, just like the others *PSGildas Cocherel2013-12-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* hevc: do not dereference pointer before NULL check in verify_md5()Michael Niedermayer2013-12-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* alsdec: check block lengthReinhard Tartler2013-12-10
| | | | | | | Fix writing over the end Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Addresses: CVE-2013-0845
* hevc: parse frame packing arrangement SEI messages and save relevant ↵Vittorio Giovara2013-12-09
| | | | stereo3d information
* mpeg12enc: set frame packing information when relevant metadata is foundVittorio Giovara2013-12-09
|
* mpeg12dec: parse frame packing arrangement user_data and save relevant ↵Vittorio Giovara2013-12-09
| | | | stereo3d information
* libx264: set frame packing information when relevant information is foundVittorio Giovara2013-12-09
|
* h264: parse frame packing arrangement SEI messages and save relevant ↵Vittorio Giovara2013-12-09
| | | | stereo3d information
* configure: Prefix libc-related variables with "libc_"Diego Biurrun2013-12-09
| | | | Simplifies host/target libc detection splitting.
* avcodec: Use av_reallocp where suitableAlexandra Khirnova2013-12-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dv: use AVFrame API properlyAnton Khirnov2013-12-09
|
* ac3dec: make drc_scale exponentiallyJohn Stebbins2013-12-09
| | | | | | | The a52 spec suggests that "partial compression" should scale the drc value in this manner. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: rework handling of refcounted_frames=0Anton Khirnov2013-12-09
| | | | | | | | | Use only proper AVFrame API (no assigning of whole frames, since that hardcodes sizeof(AVFrame) into lavc). Make a copy of the side data, so the caller can use av_frame_unref/free on non-refcounted frames, eliminating the need for avcodec_get_frame_defaults()/avcodec_free_frame().
* lavc/decode_video(): always unref the frame if there is no output in ↵Anton Khirnov2013-12-09
| | | | | | | | decode_video Not just on failure. This is the same thing that is done in the audio path and should prevent leaks in decoders that allocate a frame, but then end up not writing into it.
* lavc: remove a pointless check in decode_audio4()Anton Khirnov2013-12-09
| | | | av_frame_unref() works fine on unallocated frames.
* lavc: use buf[0] instead of data[0] as the indicator of an allocated frameAnton Khirnov2013-12-09
| | | | data[0] may be NULL for valid frames with hwaccel pixel formats.
* lavc: remove the extended_data workarounds.Anton Khirnov2013-12-09
| | | | All decoders should now handle it properly.
* pthread_frame: use the AVFrame API properly.Anton Khirnov2013-12-09
| | | | | Remove the extended_data workaround, all decoders should now handle this properly.
* mxpegdec: use the AVFrame API properly.Anton Khirnov2013-12-09
|
* p*menc: use the AVFrame API properly.Anton Khirnov2013-12-09
|
* mjpegdec: use the AVFrame API properly.Anton Khirnov2013-12-09
|
* dsputil: Move apply_window_int16 to ac3dspDiego Biurrun2013-12-08
| | | | The (optimized) functions are used nowhere else.
* libvpx: do not mark VP9 as experimental when using libvpx >= 1.3.0Guillaume Martres2013-12-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dcadec: Decode LFE to avoid adding random data when downmixing with LFEMichael Niedermayer2013-12-06
| | | | | Signed-off-by: Tim Walker <tdskywalker@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* webp: add a special case for a huffman table with only 1 symbolJustin Ruggles2013-12-05
| | | | | | | | | The vlc reader cannot handle 0-bit huffman codes. For most situations WebP uses the "simple" huffman coding for this case, but that will only handle symbols up to 255. For the LZ77 distance codes, larger symbol values are needed, so it can happen in rare cases that a normal huffman table is used that only has a single symbol.
* webp: do not call av_frame_free() on the user-provided frameJustin Ruggles2013-12-05
| | | | Fixes double-free on error.
* ljpegenc: split yuv encoding into a separate functionAnton Khirnov2013-12-05
|
* ljpegenc: split bgr encoding into a separate functionAnton Khirnov2013-12-05
|
* ljpegenc: accept bgr24 instead of bgraAnton Khirnov2013-12-05
| | | | The alpha plane is not encoded.
* ljpegenc: rename the encoding function.Anton Khirnov2013-12-05
| | | | The new name is more consistent with the rest of Libav.
* ljpeg: remove a commented-out lineAnton Khirnov2013-12-05
|
* ljpegenc: deMpegEncContextizeAnton Khirnov2013-12-05
| | | | | | | | | The encoder uses almost none of the mpegvideo infrastructure, only some fields from MpegEncContext. The FATE results change because now an all-zero quant matrix is written into the file. Since it is not used for anything for ljpeg, this should not be a problem.
* mjpegenc: do not pass MpegEncContext to ff_mjpeg_encode_dc()Anton Khirnov2013-12-05
| | | | This will allow deMpegEncContextizing the LJPEG encoder.
* mjpegenc: do not pass MpegEncContext to ff_mjpeg_encode_picture_trailer()Anton Khirnov2013-12-05
| | | | This will allow deMpegEncContextizing the LJPEG encoder.
* mjpegenc: do not pass MpegEncContext to ff_mjpeg_encode_picture_header()Anton Khirnov2013-12-05
| | | | This will allow deMpegEncContextizing the LJPEG encoder.
* mjpegenc: do not pass MpegEncContext to jpeg_table_header()Anton Khirnov2013-12-05
| | | | | Pass the three needed fields from it directly. This will allow to deMpegEncContextize the LJPEG encoder.
* mjpegenc: remove commented out never-to-be-finished WIP cruftAnton Khirnov2013-12-05
|
* mjpegenc: do not pass MpegEncContext to put_huffman_table()Anton Khirnov2013-12-05
| | | | It only needs PutBitContext from it, so pass that directly.
* mjpegenc: cosmetics, reformat jpeg_put_comments()Anton Khirnov2013-12-05
|
* mjpegenc: write the JFIF header if the sample aspect ratio is setAnton Khirnov2013-12-05
| | | | | MpegEncContext.aspect_ratio_info is never set for mjpeg, so this was never written before.
* mpegvideo: do not set current_picture_ptr in decodersAnton Khirnov2013-12-05
| | | | | | | | | | | This code was originally added in 5f1948111a4920ff74e31b4284ab0200f7938539 to h263 to set decoded frame pts to some random numbers (removed in a1c5cc429d99216406170eac7e8352860076d3e8) and then cargo culted to other decoders. The code is left in h263dec for now, since some part of the decoder (apparently OBMC) relies on the specific previous frame to be reused.
* vc1dec: move setting repeat_pict after frame_start() has been called.Anton Khirnov2013-12-05
| | | | | This will allow removing the hacks where each decoder sets current_picture_ptr on its own.
* mpegvideo: make ff_release_unused_pictures() staticAnton Khirnov2013-12-05
| | | | | It is only called from one place in mpegvideo.c now. Also remove the remove_current parameter, which is always 1.
* mpegvideo: make frame_size_alloc() static.Anton Khirnov2013-12-05
| | | | It is not called from outside of mpegvideo.c anymore.
* mpegvideo: move encode-only parts of common_end() to encode_end()Anton Khirnov2013-12-05
|