summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
* | mpegaudiodec: dont memcpy() more than needed.Michael Niedermayer2012-02-251-3/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-2512-21/+229
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: docs: use -bsf:[vas] instead of -[vas]bsf. mpegaudiodec: Prevent premature clipping of mp3 input buffer. lavf: move the packet keyframe setting code. oggenc: free comment header for all codecs lcl: error out if uncompressed input buffer is smaller than framesize. mjpeg: abort decoding if packet is too large. golomb: use HAVE_BITS_REMAINING() macro to prevent infloop on EOF. get_bits: add HAVE_BITS_REMAINING macro. lavf/output-example: use new audio encoding API correctly. lavf/output-example: more proper usage of the new API. tiff: Prevent overreads in the type_sizes array. tiff: Make the TIFF_LONG and TIFF_SHORT types unsigned. apetag: do not leak memory if avio_read() fails apetag: propagate errors. SBR DSP x86: implement SSE sbr_hf_g_filt SBR DSP x86: implement SSE sbr_sum_square_sse SBR DSP: use intptr_t for the ixh parameter. Conflicts: doc/bitstream_filters.texi doc/examples/muxing.c doc/ffmpeg.texi libavcodec/golomb.h libavcodec/x86/Makefile libavformat/oggenc.c Merged-by: Michael Niedermayer <[email protected]>
| * mpegaudiodec: Prevent premature clipping of mp3 input buffer.Dale Curtis2012-02-241-2/+4
| | | | | | | | | | | | | | | | Instead of clipping extrasize based on EXTRABYTES, clip based on the amount of buffer actually left. Without this fix, there are warbles and other distortions in the test case below. http://kevincennis.com/mix/assets/sounds/1901_voxfx.mp3
| * lcl: error out if uncompressed input buffer is smaller than framesize.Ronald S. Bultje2012-02-241-1/+22
| | | | | | | | | | | | | | | | This prevents crashes when trying to read beyond the end of the buffer while decoding frame data. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * mjpeg: abort decoding if packet is too large.Ronald S. Bultje2012-02-241-0/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * golomb: use HAVE_BITS_REMAINING() macro to prevent infloop on EOF.Ronald S. Bultje2012-02-241-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * get_bits: add HAVE_BITS_REMAINING macro.Ronald S. Bultje2012-02-241-1/+14
| |
| * tiff: Prevent overreads in the type_sizes array.Alex Converse2012-02-231-4/+11
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * tiff: Make the TIFF_LONG and TIFF_SHORT types unsigned.Alex Converse2012-02-231-9/+9
| | | | | | | | TIFF v6.0 (unimplemented) adds signed equivalents.
| * SBR DSP x86: implement SSE sbr_hf_g_filtChristophe GISQUET2012-02-232-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unrolling the main loop to process, instead of 4 elements: - 8: minor gain of 2 cycles (not worth the extra object size) - 2: loss of 8 cycles. Assigning STEP to a register is a loss. Output address (Y) is almost always unaligned. Timings: - C (32/64 bits): 117/109 cycles - SSE: 57 cycles Signed-off-by: Ronald S. Bultje <[email protected]>
| * SBR DSP x86: implement SSE sbr_sum_square_sseChristophe GISQUET2012-02-235-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | The 32bits targets have been compiled with -mfpmath=sse for proper reference. sbr_sum_square C /32bits: 82c (unrolled)/102c C /64bits: 69c (unrolled)/82c SSE/32bits: 42c SSE/64bits: 31c Use of SSE4.1 dpps to perform the final sum is slower. Not unrolling to perform 8 operations in a loop yields 10 more cycles. Signed-off-by: Ronald S. Bultje <[email protected]>
| * SBR DSP: use intptr_t for the ixh parameter.Christophe GISQUET2012-02-233-3/+5
| | | | | | | | Signed-off-by: Ronald S. Bultje <[email protected]>
* | adpcmdec: fix "warning: array subscript is above array bounds"Michael Niedermayer2012-02-251-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | a64multienc: fix "warning: buf may be used uninitialized in this function"Michael Niedermayer2012-02-251-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Revert "Set channel layout in flac decoder."Michael Niedermayer2012-02-242-4/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 2ef2496cd19eb833f4ad22a5051c11be80d09598. Conflicts: libavcodec/Makefile Signed-off-by: Michael Niedermayer <[email protected]>
* | Revert "Fix channel layout for some stereo flac files."Michael Niedermayer2012-02-241-1/+0
| | | | | | | | This reverts commit d2ee3c913d6fec3cb8c0c1b67347007c7cd604e1.
* | proresenc_anatoliy: switch to encode2Michael Niedermayer2012-02-241-9/+24
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | msvideo1enc: switch to encode2()Michael Niedermayer2012-02-241-6/+16
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | j2kenc: switch to encode2Michael Niedermayer2012-02-241-8/+17
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | flashsv2enc: switch to encode2()Michael Niedermayer2012-02-241-12/+15
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-2429-709/+499
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (40 commits) swf: check return values for av_get/new_packet(). wavpack: Don't shift minclip/maxclip rtpenc: Expose the max packet size via an avoption rtpenc: Move max_packet_size to a context variable rtpenc: Add an option for not sending RTCP packets lavc: drop encode() support for video. snowenc: switch to encode2(). snowenc: don't abuse input picture for storing information. a64multienc: switch to encode2(). a64multienc: don't write into output buffer when there's no output. libxvid: switch to encode2(). tiffenc: switch to encode2(). tiffenc: properly forward error codes in encode_frame(). lavc: drop libdirac encoder. gifenc: switch to encode2(). libvpxenc: switch to encode2(). flashsvenc: switch to encode2(). Remove libpostproc. lcl: don't overwrite input memory. swscale: take first/lastline over/underflows into account for MMX. ... Conflicts: .gitignore Makefile cmdutils.c configure doc/APIchanges libavcodec/Makefile libavcodec/allcodecs.c libavcodec/libdiracenc.c libavcodec/libxvidff.c libavcodec/qtrleenc.c libavcodec/tiffenc.c libavcodec/utils.c libavformat/mov.c libavformat/movenc.c libpostproc/Makefile libpostproc/postprocess.c libpostproc/postprocess.h libpostproc/postprocess_altivec_template.c libpostproc/postprocess_internal.h libpostproc/postprocess_template.c libswscale/swscale.c libswscale/utils.c Merged-by: Michael Niedermayer <[email protected]>
| * wavpack: Don't shift minclip/maxclipDerek Buitenhuis2012-02-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | Since we are clipping before we shift the values to 16 or 32 bits, we should not shift the min/max clip values to compensate. Fixes 8 and 24 bit lossy decoding. Signed-off-by: Derek Buitenhuis <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
| * lavc: drop encode() support for video.Anton Khirnov2012-02-231-40/+8
| | | | | | | | | | All video encoders have been converted to encode2(), all new encoders should also use only encode2().
| * snowenc: switch to encode2().Anton Khirnov2012-02-231-8/+20
| |
| * snowenc: don't abuse input picture for storing information.Anton Khirnov2012-02-231-23/+22
| |
| * a64multienc: switch to encode2().Anton Khirnov2012-02-232-14/+29
| | | | | | | | We have no decoder, so cannot test if the output is decodable.
| * a64multienc: don't write into output buffer when there's no output.Anton Khirnov2012-02-231-2/+0
| |
| * libxvid: switch to encode2().Anton Khirnov2012-02-231-21/+39
| |
| * tiffenc: switch to encode2().Anton Khirnov2012-02-231-13/+22
| |
| * tiffenc: properly forward error codes in encode_frame().Anton Khirnov2012-02-231-12/+12
| |
| * lavc: drop libdirac encoder.Anton Khirnov2012-02-233-407/+1
| | | | | | | | | | Libschroedinger is the preferred way to encode dirac video now, it produces better output and has a nicer API.
| * gifenc: switch to encode2().Anton Khirnov2012-02-231-6/+19
| |
| * libvpxenc: switch to encode2().Anton Khirnov2012-02-231-26/+27
| |
| * flashsvenc: switch to encode2().Anton Khirnov2012-02-231-11/+15
| |
| * lcl: don't overwrite input memory.Ronald S. Bultje2012-02-231-3/+8
| | | | | | | | | | | | | | If the PNG filter is enabled, a PNG-style filter will run over the input buffer, writing into the buffer. Therefore, if no zlib compression was used, ensure that we copy into a temporary buffer, otherwise we overwrite user-provided input data.
| * libxavs: switch to encode2().Anton Khirnov2012-02-231-25/+63
| |
| * libxavs: add an AVClass at the beginning of XavsContext.Anton Khirnov2012-02-231-0/+1
| |
| * libxavs: split extradata writing out of encode_nals().Anton Khirnov2012-02-231-11/+18
| | | | | | | | | | | | | | | | This is done in preparation for the following patch implementing encode2(). This commit is analogous to 05d699222dd5af4f5775f9890aa825ede05a144f for libx264.
| * ljpegenc: switch to encode2().Anton Khirnov2012-02-231-7/+25
| |
| * truemotion2: error out if the huffman tree has no nodes.Ronald S. Bultje2012-02-231-1/+1
| | | | | | | | | | | | | | | | This prevents crashers and errors further down when reading nodes in the empty tree. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * asv1enc: switch to encode2().Anton Khirnov2012-02-231-10/+24
| |
| * libschroedingerenc: switch to encode2().Anton Khirnov2012-02-231-12/+31
| |
| * ffv1enc: switch to encode2().Anton Khirnov2012-02-231-11/+23
| |
| * libtheoraenc: switch to encode2().Anton Khirnov2012-02-231-11/+14
| |
| * jpeglsenc: switch to encode2().Anton Khirnov2012-02-231-10/+21
| |
| * lclenc: switch to encode2().Anton Khirnov2012-02-231-7/+19
| |
| * qtrleenc: switch to encode2().Anton Khirnov2012-02-231-12/+18
| |
| * flacdec: set channel_layout based on channel countJustin Ruggles2012-02-221-0/+13
| | | | | | | | | | | | | | Channel layouts are specified in the FLAC format description at http://flac.sourceforge.net/format.html fixes Bug 209
| * mov: set channel layout for AC-3 streams based on the 'dac3' atom infoJustin Ruggles2012-02-225-5/+5
| | | | | | | | fixes Bug 225
* | Revert "Improve decoding quality for lossy wavpack."Michael Niedermayer2012-02-241-7/+18
| | | | | | | | | | | | This has been implemented more correctly. This reverts commit a915618a29f3f4197832151a4ed03ccdd585f9cf.