summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/y41pdec: Avoid using float for size testMichael Niedermayer2015-05-23
| | | | | | Floats are not bitexact Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libwebp: simplify AVCodec.close functionsJames Almer2015-05-23
| | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dcadec: Search and decode frame in case it starts later in a packetMichael Niedermayer2015-05-23
| | | | | | This fixes decoding the first frame of some dts files Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libwebp: use a separate AVClass for each encoderJames Almer2015-05-23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* libwebpenc_common: add header guardsJames Almer2015-05-23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* libwebp: remove unneeded definesJames Almer2015-05-23
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* WebP encoder: use WebPAnimEncoder API when available.Urvang Joshi2015-05-23
| | | | | | | | | | | | | | | | | | WebPAnimEncoder API is a combination of encoder (WebPEncoder) and muxer (WebPMux). It performs several optimizations to make it more efficient than the combination of WebPEncode() and native ffmpeg muxer. When WebPAnimEncoder API is used: - In the encoder layer: we use WebPAnimEncoderAdd() instead of WebPEncode(). - The muxer layer: works like a raw muxer. On the other hand, when WebPAnimEncoder API isn't available, the old code is used as it is: - In the codec layer: WebPEncode is used to encode each frame - In the muxer layer: ffmpeg muxer is used Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '4e17946f10d39eec6cc03fb249ae8147373141b6'Michael Niedermayer2015-05-22
|\ | | | | | | | | | | | | | | | | | | * commit '4e17946f10d39eec6cc03fb249ae8147373141b6': mpegvideo: Rework various functions not to use MpegEncContext directly Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Rework various functions not to use MpegEncContext directlyVittorio Giovara2015-05-22
| |
* | Merge commit 'a3f4c930ac3f49f47b6e6ffda925d0dcf80320e2'Michael Niedermayer2015-05-22
|\| | | | | | | | | | | | | | | | | | | * commit 'a3f4c930ac3f49f47b6e6ffda925d0dcf80320e2': mpegvideo: Have ff_mpeg_ref_picture use AVCodecContext directly Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Have ff_mpeg_ref_picture use AVCodecContext directlyVittorio Giovara2015-05-22
| |
* | Merge commit 'd528045558825f01472e9bee873f60c98d661e53'Michael Niedermayer2015-05-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd528045558825f01472e9bee873f60c98d661e53': mpegvideo: Have ff_mpeg_unref_picture use AVCodecContext directly Conflicts: libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c The memset is left in place Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Have ff_mpeg_unref_picture use AVCodecContext directlyVittorio Giovara2015-05-22
| | | | | | | | | | This skips setting the memory to 0 but allows for reuse on different contextes. Oracle did not report any unsual activity because of it.
* | Merge commit '6f54dc43cee6b2f5d183acf98b32a3cf8be4a4fc'Michael Niedermayer2015-05-22
|\| | | | | | | | | | | | | * commit '6f54dc43cee6b2f5d183acf98b32a3cf8be4a4fc': mpegvideo: Drop stream_codec_tag Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Drop stream_codec_tagVittorio Giovara2015-05-22
| | | | | | | | The field is unused.
* | Merge commit '9c1db92ad372d4cd69e0490e691c56e4097cb193'Michael Niedermayer2015-05-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9c1db92ad372d4cd69e0490e691c56e4097cb193': mpegvideo: Drop err_recognition Conflicts: libavcodec/h263dec.c libavcodec/ituh263dec.c libavcodec/mpeg4video.h libavcodec/mpeg4videodec.c libavcodec/msmpeg4dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Drop err_recognitionVittorio Giovara2015-05-22
| | | | | | | | It is just a duplicate of an AVCodecContext member so use it instead.
* | Merge commit '848e86f74d3e6e87fa592ee8ba8c184cc5fd9a42'Michael Niedermayer2015-05-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '848e86f74d3e6e87fa592ee8ba8c184cc5fd9a42': mpegvideo: Drop flags and flags2 Conflicts: libavcodec/mpeg12dec.c libavcodec/mpeg12enc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/mpegvideo_motion.c libavcodec/ratecontrol.c libavcodec/vc1_block.c libavcodec/vc1_loopfilter.c libavcodec/vc1_mc.c libavcodec/vc1dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: Drop flags and flags2Vittorio Giovara2015-05-22
| | | | | | | | They are just duplicates of AVCodecContext members so use those instead.
| * hevc: make avcodec_decode_video2() fail if get_format() failswm42015-05-19
| | | | | | | | | | | | | | | | | | | | | | | | Personally, I need the decoder to back out if get_format() returns no usable pixel format. This didn't work because the error code was not propagated down the call chain. This in turn happened because the variable declaration removed in this patch shadowed the variable, whose value is returned at the end of the function. Consequently, failures of decode_nal_unit() were ignored in this place. Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/movtextdec: Add support for large boxes(>32 bit)Niklesh2015-05-22
| | | | | | | | Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
* | avcodec/mpeg12dec: Fix chroma locationMichael Niedermayer2015-05-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | WebP encoder: extract out some methods into a separate helper library.Urvang Joshi2015-05-22
| | | | | | | | | | | | | | This is the 2nd patch in preparation for using WebPAnimEncoder API for encoding and muxing WebP images. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: loongson fix bugs in mathops optimization周晓勇2015-05-21
| | | | | | | | | | | | the incorrect UMULH, ff_sqrt, MAC64 and MLS64 to be optimized later, delete them just for now. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'cehoyos/master'Michael Niedermayer2015-05-21
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * cehoyos/master: lavc/qdrw: Do not fail decoding valid Quickdraw images. lavf/mov: Use AVCOL_SPC constants when checking color_space. lavf/mov: Write colour matrix "6" for color_space bt470bg. lavf/mkv: Only skip prores header if the packet is large enough. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | lavc/qdrw: Do not fail decoding valid Quickdraw images.Carl Eugen Hoyos2015-05-21
| | |
* | | libvpx: add support for yuv440p and yuv440p10/12 encodingJames Almer2015-05-20
|/ / | | | | | | | | Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/vmnc: Add back adapted comment about 24bitVittorio Giovara2015-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vmnc: Simplify "24bit" supportMichael Niedermayer2015-05-20
| | | | | | | | | | | | | | This also makes the code more robust, removing potential out of array writes. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'eafbc6716cede6d4a652f8bedf82f2901c68d06d'Michael Niedermayer2015-05-20
|\| | | | | | | | | | | | | * commit 'eafbc6716cede6d4a652f8bedf82f2901c68d06d': vmnc: Delay pixel size check Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vmnc: Delay pixel size checkVittorio Giovara2015-05-19
| | | | | | | | | | | | | | | | Some clients incorrectly set 24 as bits_per_coded_sample, while the actual value is preserved in one of the codec headers. In order to work around this, delay the check until decode_frame(). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avcodec/hevc: Remove unused variableMichael Niedermayer2015-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: add mathops testMichael Niedermayer2015-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/vmnc: Fix 32bit colour-space, there is no transparency.Carl Eugen Hoyos2015-05-20
| |
* | Fix movtext crashes caused due to lack of proper bounds checkingNiklesh2015-05-19
| | | | | | | | Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
* | avcodec/flacenc: Support Multi dimensional quantizationMichael Niedermayer2015-05-20
| | | | | | | | | | | | Now with exact bit computations if exact_rice_parameters is enabled Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Mark pointers/array arguments const which are not changedMichael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Simplify md5 calculation code by using AV_WL24()Michael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Move udata and sums to FlacSubframeMichael Niedermayer2015-05-19
| | | | | | | | | | | | | | | | This significantly reduces the amount of stack space needed and also permits to simply copy the rice context again without speed penalty Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Support calculating rice parameters exactlyMichael Niedermayer2015-05-19
| | | | | | | | | | | | | | Some files benefit by about 0.3% from this, and speedwise its ok other files do not benefit and encode to the same size Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Do not copy unused udata array -> 5x faster calc_rice_params()Michael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/golomb: Remove disabled and broken codeMichael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mss2: use < 0 instead of != 0 to check for error of vlc initializationMichael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec/x265: detect csps in libx265_encode_init_csp()Steve Borho2015-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this change, if you link with an 8bit libx265 and try to specify a 10bit input color space via: ffmpeg -i in.mov -c:v libx265 -pix_fmt yuv420p10le out.mp4 It will error with: Incompatible pixel format 'yuv420p10le' for codec 'libx265', auto-selecting format 'yuv420p' With this fix, it will learn if a 10bit libx265 is available at startup, and thus allow 10bit input color spaces. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/snow_dwt: Remove ff_ prefix from ff_spatial_idwt_init() and ↵Michael Niedermayer2015-05-18
| | | | | | | | | | | | | | | | ff_spatial_idwt_slice() They are only used once in the file in which they are defined Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc_cabac: Rename ff_hevc_transform_skip_flag_decode() to ↵Michael Niedermayer2015-05-18
| | | | | | | | | | | | | | | | hevc_transform_skip_flag_decode() The function is static and used once in the file its defined in Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'rbultje/vp9-bugfixes'Michael Niedermayer2015-05-18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rbultje/vp9-bugfixes: vp9: match another find_ref_mvs() bug in libvpx. vp9: fix scaled motion vector clipping for sub8x8 blocks. vp9: improve signbias check. vp9: don't allow compound references if error_resilience is enabled. vp9: clamp segmented lflvl before applying ref/mode deltas. vp9: reset loopfilter mode/ref deltas on keyframe. vp9: fix crash when playing back 440/440 content with width%64<56. vp9: extend loopfilter workaround for vp9 h/v mix-up to work for 422. vp9: clip motion vectors in the same way as libvpx does. vp9: set skip flag if the block had no coded coefficients. vp9: apply mv scaling workaround only when subsampling is enabled. vp9: read all 4x4 blocks in sub8x8 blocks individually with scalability. vp9: fix segmentation map referencing upon framesize change. vp9: disable more pmulhrsw optimizations in idct16/32. vp9: disable all pmulhrsw in 8/16 iadst x86 optimizations. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | vp9: match another find_ref_mvs() bug in libvpx.Ronald S. Bultje2015-05-16
| | | | | | | | | | | | | | | | | | | | | If we find a second non-sub8x8 motion vector for a non-first sub8x8 block, and the clamped value is identical to the first non-sub8x8 motion vector, then the resulting nearmv motion vector is forced to zero.
| * | vp9: fix scaled motion vector clipping for sub8x8 blocks.Ronald S. Bultje2015-05-16
| | | | | | | | | | | | To match the obscure clipping bug behaviour in libvpx.
| * | vp9: improve signbias check.Ronald S. Bultje2015-05-15
| | | | | | | | | | | | | | | Otherwise it will still scale motion vectors, which leads to corrupted prediction.