summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* dxva2_hevc: re-write reference frame handlingHendrik Leppkes2015-05-29
| | | | | | | The old logic required and explicit clearing of the lists first and was prone to overflow the DXVA2 struct in some circumstances. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dxva2_hevc: fix 32x32 scaling listsHendrik Leppkes2015-05-29
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: Reset bitstream_buffer_size on allocation failureMichael Niedermayer2015-05-29
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: Check pointer when allocation failRoman Savchenko2015-05-29
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'e4610300de6869bd6b3b00e76cfeabb6d7653dcd'Michael Niedermayer2015-05-28
|\ | | | | | | | | | | | | | | | | | | | | * commit 'e4610300de6869bd6b3b00e76cfeabb6d7653dcd': x86: cavs: Remove an unneeded scratch buffer Conflicts: libavcodec/x86/cavsdsp.c See: d79f7bf0d63a81ee66026ee92a6946a7303d04bd Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: cavs: Remove an unneeded scratch bufferMichael Niedermayer2015-05-28
| | | | | | | | | | | | | | | | Simplifies the code and makes it build on certain compilers running out of registers on x86. CC: libav-stable@libav.org Reported-By: mudler
* | Merge commit '1b1bb2c4efc126d74d44d8c421860c85f932ecb1'Michael Niedermayer2015-05-28
|\| | | | | | | | | | | | | | | | | | | * commit '1b1bb2c4efc126d74d44d8c421860c85f932ecb1': rl: Add error checking to ff_rl_init(). Conflicts: libavcodec/rl.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rl: Add error checking to ff_rl_init().Anton Khirnov2015-05-28
| |
* | Merge commit '324e50ee95929a9491b855c5e15451145bd5d1ec'Michael Niedermayer2015-05-28
|\| | | | | | | | | | | | | * commit '324e50ee95929a9491b855c5e15451145bd5d1ec': rl: Add a function for freeing dynamically allocated tables. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rl: Add a function for freeing dynamically allocated tables.Anton Khirnov2015-05-28
| | | | | | | | Such tables are not used anywhere currently, but that should change.
* | Merge commit '6f57375d707de40dcec28d3cef886c364e032c21'Michael Niedermayer2015-05-28
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '6f57375d707de40dcec28d3cef886c364e032c21': rl: Rename ff_*_rl() to ff_rl_*() Conflicts: libavcodec/mpeg4videodec.c libavcodec/rl.c libavcodec/rl.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rl: Rename ff_*_rl() to ff_rl_*()Anton Khirnov2015-05-28
| |
* | Merge commit 'fa1923f18205410a3b0aa6c0e77cb31443ef340d'Michael Niedermayer2015-05-28
|\| | | | | | | | | | | | | | | | | | | * commit 'fa1923f18205410a3b0aa6c0e77cb31443ef340d': mpegvideo: Move ff_*_rl functions to a separate file Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Move ff_*_rl functions to a separate fileAnton Khirnov2015-05-28
| |
* | Merge commit '419e3404d07acaac019e8f363c281e17c3a3d622'Michael Niedermayer2015-05-28
|\| | | | | | | | | | | | | * commit '419e3404d07acaac019e8f363c281e17c3a3d622': mpegvideo: Drop exchange_uv() function and use its code directly Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Drop exchange_uv() function and use its code directlyVittorio Giovara2015-05-28
| | | | | | | | Code is small enough that there is no advantage in a separate function.
* | avcodec/mips/hevcdsp_msa: Restructure as per avutil/mips/generic_macros_msa.hShivraj Patil2015-05-28
| | | | | | | | | | | | | | | | | | This patch modifies HEVC mc MIPS-SIMD optimized code according to improved version of generic macros. Overall, this patch is just upgrading the code with styling changes and will bring it in sync with MIPS-SIMD optimized latest codebase at our end. Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: Split uni mc optimizations to new fileShivraj Patil2015-05-28
| | | | | | | | | | | | | | | | | | This patch moves HEVC code of uni mc cases to new file hevc_mc_uni_msa.c. (There are total 5 sub-modules of HEVC mc functions, if we add all these modules in one single file, its size would be huge (~750k) & difficult to maintain, so splitting it in multiple files) This patch also adds new HEVC header file libavcodec/mips/hevc_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | dvdsubdec: implement flushingwm42015-05-28
| | | | | | | | | | | | This is needed for proper operation with seeking. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | dvdsubdec: reset buffer size on invalid over-large packetswm42015-05-28
| | | | | | | | | | | | | | | | Otherwise it will never be reset, and remain "stuck" in this state forever. Can happen when seeking: the decoder will receive fragments from different file positions, which triggers the condition easily. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/x264: Support bgr0 as input pix_fmt.Carl Eugen Hoyos2015-05-28
| |
* | avcodec/mips: Restructure as per avutil/mips/generic_macros_msa.hShivraj Patil2015-05-28
| | | | | | | | | | | | | | | | | | | | This patch modifies H264 loopfilter, weighted & bi-weighted prediction MIPS-SIMD optimized code according to improved version of generic macros. Also there are minor code alignment changes. Overall, this patch is just upgrading the code with styling changes and will bring it in sync with MIPS-SIMD optimized latest codebase at our end. Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ffv1dec: Fix skip_alphaMichael Niedermayer2015-05-28
| | | | | | | | | | | | Fixes Ticket4322 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Revert "Move struc FFTContext below SECTION_RODATA"Timothy Gu2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 599888a48040f4086c9086aae958b7231b37afcc. The commit does not silence the warning on ELF-based systems, and will be fixed in the subsequent commit. Conflicts: libavcodec/x86/fft_mmx.asm Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: loongson3 optimized h264dsp weighted mc with mmi周晓勇2015-05-27
| | | | | | | | | | Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/nvenc: Fix typo: 1204 -> 1024Philip Langdale2015-05-26
| | | | | | | | | | | | Fixes Ticket4508 Signed-off-by: Philip Langdale <philipl@overt.org>
* | avcodec/h264: Fix HWACCEL_MAX for D3D11Michael Niedermayer2015-05-26
| | | | | | | | | | Found-by: philipl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc: Fix HWACCEL_MAX for D3D11Michael Niedermayer2015-05-26
| | | | | | | | | | Found-by: philipl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dxva2_h264: Fix "may be used uninitialized" warningsMichael Niedermayer2015-05-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vdpau: Re-factor pre-hwaccel helper functions into separate headerPhilip Langdale2015-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | h264.h and hevc.h are mutually exclusive due to defining some of the same names. As such, we need to avoid forcing h264.h to be included if we want hevc decode acceleration to be possible. However, some of the pre-hwaccel helper functions need h264.h. To avoid messy collisions, let's move the declaration of all those helpers to a separate header which we will exclude for the hevc support (which will be hwaccel-only). Signed-off-by: Philip Langdale <philipl@overt.org>
* | avcodec/dxva2: Fix "may be used uninitialized" warningsMichael Niedermayer2015-05-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dxva2: Fix build without D3D11Michael Niedermayer2015-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd8039ef8d221ea273aa4f1e62e5df21bf618c772'Michael Niedermayer2015-05-25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd8039ef8d221ea273aa4f1e62e5df21bf618c772': D3D11va: add a Direct3D11 video decoder similar to DXVA2 Conflicts: Changelog configure libavcodec/Makefile libavcodec/allcodecs.c libavcodec/dxva2_vc1.c libavcodec/version.h libavutil/pixdesc.c libavutil/pixfmt.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * D3D11va: add a Direct3D11 video decoder similar to DXVA2Steve Lhomme2015-05-25
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Improve upon dynamic arrays- movtext subtitlesNiklesh2015-05-25
| | | | | | | | Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
* | libshine: fix support for shine 3.0Andreas Cadhalpun2015-05-25
| | | | | | | | | | | | | | | | | | | | | | | | shine_encode_buffer expects written to be an int pointer, while the previous shine_encode_frame expected it to be a long pointer. Thus encoding with libshine currently always fails with "internal buffer too small", because a negative return value of shine_encode_buffer is interpreted as a very large long value. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | avcodec/mjpegenc_common: Use ff_mpv_reallocate_putbitbuffer()Michael Niedermayer2015-05-25
| | | | | | | | | | | | | | Fixes assertion failure Fixes Ticket4396 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: Factor ff_mpv_reallocate_putbitbuffer() outMichael Niedermayer2015-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/put_bits: Assert that size in set_put_bits_buffer_size() does not ↵Michael Niedermayer2015-05-25
| | | | | | | | | | | | cause integer overflows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/bitstream: Assert that there is enough space left in avpriv_copy_bits()Michael Niedermayer2015-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/put_bits: Assert that there is enough space left in skip_put_bytes()Michael Niedermayer2015-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo_enc: Update the buffer size as more slices are mergedMichael Niedermayer2015-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size()Michael Niedermayer2015-05-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libutvideoenc: Fix memleakMichael Niedermayer2015-05-25
| | | | | | | | | | | | Fixes: CID1257657 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libdcadec: search for frames that start late in a packetJames Almer2015-05-24
| | | | | | | | | | | | | | Based on commit 4ae15605f6298d8369a1f1374596b52a3839c703 Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/ituh263enc: Pass PutBitContext into h263p_encode_umotion() instead ↵Michael Niedermayer2015-05-24
| | | | | | | | | | | | | | | | | | of MpegEncContext This avoids the need to dereference MpegEncContext->pb if it is already available outside h263p_encode_umotion() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: Pass PutBitContext into ff_h263_encode_motion() instead of ↵Michael Niedermayer2015-05-24
| | | | | | | | | | | | | | | | | | MpegEncContext This avoids the need to dereference MpegEncContext->pb if it is already available outside ff_h263_encode_motion() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/h263: Remove unused argument of h263_get_motion_length()Michael Niedermayer2015-05-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpeg4video: Reorder operations to reduce accesses to err_recognitionMichael Niedermayer2015-05-24
| | | | | | | | | | | | About 9 cpu cycle faster mpeg4_decode_mb() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/y41pdec: Avoid using float for size testMichael Niedermayer2015-05-23
| | | | | | | | | | | | Floats are not bitexact Signed-off-by: Michael Niedermayer <michaelni@gmx.at>