summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avutil/file: Move av_tempfile() to avutil/file_open ff_tempfile()Michael Niedermayer2016-03-12
| | | | | | | document the issue with av_tempfile() Tested-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/alsdec: fix max bits in ltp prefix codeUmair Khan2016-03-12
| | | | | | | | | | | The maximum number of bits int the prefix code for p(0) is 4. By setting it as 3, we were missing the last 0 bit. This fixes bug #4715 present on the trac. Signed-off-by: Umair Khan <omerjerk@gmail.com> Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vp9: fix a few signed integer left-shifts.Ronald S. Bultje2016-03-11
| | | | Fixes trac tickets 5127, 5129, 5130.
* vp9_superframe: fix endianness of size markers.Ronald S. Bultje2016-03-11
|
* vp9: add superframe merging bitstream filter.Ronald S. Bultje2016-03-11
| | | | Fixes ticket 4313.
* lavf: allow BSFs to drop packets.Ronald S. Bultje2016-03-11
| | | | | If pkt->size == 0 && pkt->side_data_elems == 0 after bsf->filter() returns, the packet is considered dropped.
* lavc/lpc: exploit even symmetry of window functionGanesh Ajjanagadde2016-03-10
| | | | | | | | | | | | | Yields 2x improvement in function performance, and boosts aac encoding speed by ~ 4% overall. Sample benchmark (Haswell+GCC under -march=native): after: ffmpeg -i sin.flac -acodec aac -y sin_new.aac 5.22s user 0.03s system 105% cpu 4.970 total before: ffmpeg -i sin.flac -acodec aac -y sin_new.aac 5.40s user 0.05s system 105% cpu 5.162 total Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* lavc/ffjni: fix uninitialized variableMatthieu Bouron2016-03-10
|
* mips: add support for R6Vicente Olivert Riera2016-03-09
| | | | | | | | | | | Understanding the mips32r6 and mips64r6 ISAs in the configure script is not enough. In order to have full support for MIPS R6 in FFmpeg we need to be able to build it, and for that we need to make sure we don't use incompatible assembler code which makes the build fail. Ifdefing the offending code is sufficient to fix the problem. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/mjpegdec: Set sar for multiscope videos.Carl Eugen Hoyos2016-03-09
| | | | Fixes decoding of the files from ticket #4535 visually.
* lavc/hevc_ps: Fix offset for yuv422 and yuv444.Carl Eugen Hoyos2016-03-09
| | | | | | Fixes ticket #4980. Analyzed-by: kurosu and Hendrik Reviewed-by: Ronald
* Use correct msvc type specifiers for ptrdiff_t and size_t.Carl Eugen Hoyos2016-03-09
|
* avcodec/ffjni: Fix occured typoMichael Niedermayer2016-03-09
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ffjni: Fix ;;Michael Niedermayer2016-03-09
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* aacenc_utils: Use temporary variable.Reimar Döffinger2016-03-08
| | | | | | | | | | This ensures gcc does not create unnecessary loads or stores and possibly even does not vectorize the negation. Speeds up mp3 to aac transcoding with default settings by 10% when using "gcc (Debian 5.3.1-10) 5.3.1 20160224". Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* aacenc: use generational cache instead of resetting.Reimar Döffinger2016-03-08
| | | | | | | Approximately 11% faster transcoding from mp3 with default settings. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* lavc/mjpegdec: avoid printing useless message in default log levelMoritz Barsnick2016-03-08
| | | | | | | | | | The change of bps from 0 doesn't contain any info useful to the user. This message is now at info log level only if the original value is !=0, otherwise pushed back to debug log level. The original value is displayed additionally. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/nvenc: Fix typo and preset error messageTimo Rothenpieler2016-03-08
|
* avcodec/nvenc: Add encoder statsLucas Cooper2016-03-08
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avcodec: try to document timebase a bit moreMichael Niedermayer2016-03-07
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/utils: fix extra ASS sanity check in convert_sub_to_old_ass_form()Clément Bœsch2016-03-07
|
* lavc/mediacodec: fix chroma width for yuv420pMatthieu Bouron2016-03-07
|
* lavc/mjpegdec: avoid unneeded allocation if the frame is to be skippedMatthieu Bouron2016-03-07
|
* lavc: add h264 mediacodec decoderMatthieu Bouron2016-03-07
|
* lavc: add JNI supportMatthieu Bouron2016-03-07
|
* lavc/cfhd: Remove one more \n from avpriv_report_missing_feature().Carl Eugen Hoyos2016-03-06
|
* lavc/cfhd: Sanitize avpriv_report_missing_feature() usage.Carl Eugen Hoyos2016-03-06
|
* avcodec/dca: clear X96 channels if nothing was decodedfoo862016-03-06
| | | | | | | | The first X96 channel set can have more channels than core, causing X96 decoding to be skipped. Clear the number of decoded X96 channels to zero in this rudimentary case. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cfhd: Fixes cfhd_odd.mov which has a resolution of 496x241Kieran Kunhya2016-03-06
| | | | | In this case container width/height is better however. Thanks to koda for the sample
* avcodec/alsdec: treat quant_cof as a signed valueUmair Khan2016-03-06
| | | | | | Signed-off-by: Umair Khan <omerjerk@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* bitstream.c: improve init_vlc error messages.Reimar Döffinger2016-03-06
| | | | | | | Makes it far easier to spot the issue if e.g. caused by a typo in the code table. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* aacenc: avoid double in quantize_bands.Reimar Döffinger2016-03-06
| | | | | | | | | | I cannot see any point whatsoever to use double here instead of float, the results are likely identical in all cases.. Using float allows for much more efficient use of SIMD. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* lavc: restore ABI compatibility with 3.x (sub_text_format)Clément Bœsch2016-03-05
| | | | | | Regression introduced in 2941282. Reported-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cos_tablegen: extend table generation to 17bitsJames Almer2016-03-05
| | | | | | | Fixes compilation of fft with hardcoded tables Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/utils: Fix memleak on error in convert_sub_to_old_ass_form()Michael Niedermayer2016-03-05
| | | | | | Fixes CID1355116 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vc2enc: minor cosmetic changesRostislav Pehlivanov2016-03-04
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: remove useless alignment on slice encodingRostislav Pehlivanov2016-03-04
| | | | | | | | This was a leftover from before the slices were encoded in parallel. Since the put_bits context is initialized per slice aligning it aferwards is pointless. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: do not allocate packet until exact frame size is knownRostislav Pehlivanov2016-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit solves most of the crashes and issues with the encoder and the bitrate setting. Now the encoder will always allocate the absolute lowest amount of memory regardless of what the bitrate has been set to. Therefore if a user inputs a very low bitrate the encoder will use the maximum possible quantization (basically zero out all coefficients), allocate a packet and encode it. There is no coupling between the bitrate and the allocation size and so no crashes because the buffer isn't large enough. The maximum quantizer was raised to the size of the table now to both keep the overshoot at ridiculous bitrates low and to improve quality with higher bit depths (since the coefficients grow larger per transform quantizing them to the same relative level requires larger quantization indices). Since the quantization index start follows the previous quantization index for that slice, the quantization step was reduced to a static 1 to improve performance. Previously with quant/5 the step was usually set to 0 upon start (and was later clipped to 1), that isn't a big change. As the step size increases so does the amount of bits leftover and so the redistribution algorithm has to iterate more and thus waste more time. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* Merge commit '5e555f93009f0605db120eec78262d0fe337e645'Derek Buitenhuis2016-03-04
|\ | | | | | | | | | | | | | | | | | | | | AVClass is now a const, the rest are no-op. * commit '5e555f93009f0605db120eec78262d0fe337e645': mpeg12enc: always write closed gops for intra only outputs h264: Add an AVClass pointer to H264Context libx264: Fix noise_reduction option assignment Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * mpeg12enc: always write closed gops for intra only outputsMarton Balint2016-02-22
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
| * h264: Add an AVClass pointer to H264ContextMichael Niedermayer2016-02-22
| | | | | | | | | | | | | | Sample-Id: asan_heap-uaf_3660f67_757_cov_1257014655_Hi422FR1_SONY_A.jsv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * libx264: Fix noise_reduction option assignmentVittorio Giovara2016-02-22
| | | | | | | | | | First check the context, then check internal option. Drop the ! typo. Introduced in 60f0fde3092d18d4d36555962c192af8691a099c.
* | avcodec/fft: Add revtab32 for FFTs with more than 65536 samplesMichael Niedermayer2016-03-04
| | | | | | | | | | | | x86 optimizations are used only for the cases they support (<=65536 samples) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec: Extend fft to size 2^17Michael Niedermayer2016-03-04
| | | | | | | | | | | | Asked-for-by: durandal_1707 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/nvenc: Fix H264 and HEVC vui info updateAgatha Hu2016-03-04
| | | | | | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* | avcodec/utils: Fix 'ISO C90 forbids mixed declarations and code'Michael Niedermayer2016-03-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dca: simplify conditionfoo862016-03-03
| | | | | | | | | | Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dca: fix av_cold placement in declarationsfoo862016-03-03
| | | | | | | | | | Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/videotoolboxenc: remove *_NULLABLE annotations; fixes pre-10.11 buildRodger Combs2016-03-02
| | | | | | | | | | | | | | These macros were added in OS X 10.11, and the file compiles without warnings on both 10.10 and 10.11 with them removed. Thanks to mark4o on IRC for pointing out the failure and testing the patch.
* | lavc: add VideoToolbox H.264 EncoderRick Kern2016-03-02
| | | | | | | | | | | | | | Autodetected by default. Encode using -codec:v h264_videotoolbox. Signed-off-by: Rick Kern <kernrj@gmail.com> Signed-off-by: wm4 <nfxjfg@googlemail.com>