summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* Add FFMPEG_VERSION into the binary libsMichael Niedermayer2014-12-19
| | | | | | This simplifies identifying from which revision a binary of a lib came from Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil: Added cbc mode to cast128Supraja Meedinti2014-12-19
| | | | | | Signed-off-by: Supraja Meedinti <supraja0493@gmail.com> Previous version reviewed-by: Giorgio Vazzana <mywing81@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'b1306823d0b3ae998c8e10ad832004eb13bdd93e'Michael Niedermayer2014-12-19
|\ | | | | | | | | | | | | | | | | | | | | | | * commit 'b1306823d0b3ae998c8e10ad832004eb13bdd93e': check memory errors from av_strdup() Conflicts: avprobe.c libavformat/matroskaenc.c libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * check memory errors from av_strdup()Vittorio Giovara2014-12-18
| |
* | Merge commit '5d839778b9f3edb682b7f71dde4f80f07c75b098'Michael Niedermayer2014-12-19
|\| | | | | | | | | | | | | | | | | | | | | * commit '5d839778b9f3edb682b7f71dde4f80f07c75b098': lavu: Refactor side data wiping Conflicts: libavutil/frame.c See: a400edbb6d00c0211de38e4f1b4f593681db91d8 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: Refactor side data wipingLuca Barbato2014-12-18
| | | | | | | | | | | | | | | | And make sure the nb_side_data field is reset as well. Based on an initial patch from wm4 <nfxjfg@googlemail.com>. CC: libav-stable@libav.org
| * thread: use "" instead of <> for including the w32pthreads wrapperAnton Khirnov2014-12-14
| | | | | | | | Found-by: Dave Yeo <dave.r.yeo@gmail.com>
* | libavutil: cosmetic: inserted spaces wherever necessarySupraja Meedinti2014-12-17
| | | | | | | | | | Signed-off-by: Supraja Meedinti <supraja0493@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/frame: fix malloc error path in av_frame_copy_props()wm42014-12-15
| | | | | | | | | | | | | | The error path frees all side data, but forgets to reset the side data count. This can blow up later in av_frame_unref() and free_side_data(). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/dict: check for malloc failureswm42014-12-12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '780cd20b00a69e26bbfffbb8eec16fbe999ea793'Michael Niedermayer2014-12-09
|\| | | | | | | | | | | | | * commit '780cd20b00a69e26bbfffbb8eec16fbe999ea793': aarch64: Use .data.rel.ro for const data with relocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * aarch64: Use .data.rel.ro for const data with relocationsMartin Storsjö2014-12-09
| | | | | | | | | | | | | | This reverts commit c00365b46d464ce47716315c1801818d811bdb9a in addition to using a different section. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'f963f80399deb1a2b44c1bac3af7123e8a0c9e46'Michael Niedermayer2014-12-09
|\| | | | | | | | | | | | | | | | | | | * commit 'f963f80399deb1a2b44c1bac3af7123e8a0c9e46': arm: Use .data.rel.ro for const data with relocations Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * arm: Use .data.rel.ro for const data with relocationsMartin Storsjö2014-12-09
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * v210enc: Add SIMD optimised 8-bit and 10-bit encodersKieran Kunhya2014-12-05
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avutil/opt: Fix AV_OPT_TYPE_BINARY case in av_opt_is_set_to_default()Michael Niedermayer2014-12-08
| | | | | | | | | | | | | | Fixes CID1257010 Reviewed-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Check av_parse_video_rate()s return valueMichael Niedermayer2014-12-07
| | | | | | | | | | | | Fixes CID1257008 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Check av_parse_color() return valueMichael Niedermayer2014-12-07
| | | | | | | | | | | | Fixes: CID1257007 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/buffer: add #if USE_ATOMICS around atomics specific functions to ↵Michael Niedermayer2014-12-06
| | | | | | | | | | | | | | | | ensure sync types arent mixed by mistake Fixes CID1257011 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/ppc/util_altivec: add () to VEC_SPLAT16 macroMichael Niedermayer2014-11-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/buffer: Move USE_ATOMICS to thread.h to avoid it becoming out of sync ↵Michael Niedermayer2014-11-29
| | | | | | | | | | | | with it Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/threads.h: correct an include to be localDave Yeo2014-11-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/thread.h: Support OS/2 threadsDave Yeo2014-11-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/bprint: C++ compatible AVBPrint definition.Vadim Kalinsky2014-11-29
| | | | | | | | | | Previous version reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: add escaping to av_opt_serializeLukasz Marek2014-11-29
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | Merge commit 'fbd6c97f9ca858140df16dd07200ea0d4bdc1a83'Michael Niedermayer2014-11-27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fbd6c97f9ca858140df16dd07200ea0d4bdc1a83': lavu: fix memory leaks by using a mutex instead of atomics Conflicts: libavutil/buffer.c The atomics code is left in place as a fallback for synchronization in the absence of p/w32 threads. Our ABI did not requires applications to only use threads (and matching ones) to what libavutil was build with Our code also was not affected by the leak this change fixes, though no question the atomics based implementation is not pretty at all. First and foremost the code must work, being pretty comes after that. If this causes problems, for example when libavutil is used by multiple applications each using a different kind of threading system then the default possibly has to be changed to the uglier atomics. See: cea3a63ba3d89d8403eef008f7a7c54d645cff70 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: fix memory leaks by using a mutex instead of atomicswm42014-11-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The buffer pool has to atomically add and remove entries from the linked list of available buffers. This was done by removing the entire list with a CAS operation, working on it, and then setting it back again (using a retry-loop in case another thread was doing the same thing). This could effectively cause memory leaks: while a thread was working on the buffer list, other threads would allocate new buffers, increasing the pool's total size. There was no real leak, but since these extra buffers were not needed, but not free'd either (except when the buffer pool was destroyed), this had the same effects as a real leak. For some reason, growth was exponential, and could easily kill the process due to OOM in real-world uses. Fix this by using a mutex to protect the list operations. The fancy way atomics remove the whole list to work on it is not needed anymore, which also avoids the situation which was causing the leak. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavu/opt: add consts where possibleLukasz Marek2014-11-27
| |
* | Merge commit '2443e522f0059176ff8717c9c753eb6fe7e7bbf1'Michael Niedermayer2014-11-27
|\| | | | | | | | | | | | | * commit '2443e522f0059176ff8717c9c753eb6fe7e7bbf1': lavu: add wrappers for the pthreads mutex API Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: add wrappers for the pthreads mutex APIAnton Khirnov2014-11-27
| | | | | | | | | | | | | | | | | | | | Also add no-op fallbacks when threading is disabled. This helps keeping the code clean if Libav is compiled for targets without threading. Since we assume that no threads of any kind are used in such configurations, doing nothing is ok by definition. Based on a patch by wm4 <nfxjfg@googlemail.com>.
* | lavu/imgutils: remove redundant and wrong check in av_image_fill_arraysStefano Sabatini2014-11-27
| |
* | msvc: Fix compilation errors due to header include order.Matthew Oliver2014-11-27
| | | | | | | | | | | | | | Ensures that the header include order is such that winsock2.h is always included before windows.h or that windows.h does not include winsock.h. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/ppc/util_altivec.h : fix load_with_perm_vec() add marcos ↵Rong Yan2014-11-27
| | | | | | | | | | | | vcswapi2s() vcswapc() VEC_SPLAT16() VEC_SLD16() for POWER LE Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9326d64ed1baadd7af60df6bbcc59cf1fefede48'Michael Niedermayer2014-11-27
|\| | | | | | | | | | | | | | | | | | | | | * commit '9326d64ed1baadd7af60df6bbcc59cf1fefede48': Share the utf8 to wchar conversion routine between lavf and lavu Conflicts: libavformat/os_support.h libavutil/file_open.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Share the utf8 to wchar conversion routine between lavf and lavuMartin Storsjö2014-11-27
| | | | | | | | | | | | | | | | This doesn't add any dependency on library internals, since this only is a static inline function that gets built into each of the calling functions - this is only to reduce the code duplication. Signed-off-by: Martin Storsjö <martin@martin.st>
* | v210enc: Add SIMD optimised 8-bit and 10-bit encodersKieran Kunhya2014-11-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: handle NULL obj in av_opt_nextLukasz Marek2014-11-25
| | | | | | | | | | | | It indirectly also fixes av_opt_free for NULL objs. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | Merge commit '277ff7f5dc134f1c2dfc4ea0ef3540340482e3d2'Michael Niedermayer2014-11-24
|\| | | | | | | | | | | | | | | | | | | | | * commit '277ff7f5dc134f1c2dfc4ea0ef3540340482e3d2': lavu: move internal define to the only places where it is used Conflicts: libavcodec/h264_cabac.c libavutil/internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: move internal define to the only places where it is usedVittorio Giovara2014-11-24
| |
* | avutil/file: fix av_tempfile() documentationMichael Niedermayer2014-11-24
| | | | | | | | | | Found-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: remove FF_CONST_AVUTIL53, its no longer neededMichael Niedermayer2014-11-24
| | | | | | | | | | | | version is 54 already Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/dict: add av_dict_get_stringLukasz Marek2014-11-21
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | avutil/arm/float_dsp_init_vfp: replace restrict by av_restrictjessejiang2014-11-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/float_dsp: add avpriv_float_dsp_alloc()Michael Niedermayer2014-11-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: introduce av_opt_serialize()Lukasz Marek2014-11-16
| | | | | | | | | | | | | | Function allows to create string containing object's serialized options. Such string may be passed back to av_set_options_string() in order to restore options. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: introduce av_opt_is_set_to_default()Lukasz Marek2014-11-16
| | | | | | | | | | | | New function allows to check if option is set to its default value Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: fix av_opt_get functionLukasz Marek2014-11-12
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | lavu/opt: fix memleak in testLukasz Marek2014-11-12
| | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | Merge commit 'c6074a30ba3b5fb4319ee6ee599656d58548cdc8'Michael Niedermayer2014-11-11
|\| | | | | | | | | | | | | * commit 'c6074a30ba3b5fb4319ee6ee599656d58548cdc8': opt: Fix the documentation mentioning av_set_string3 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * opt: Fix the documentation mentioning av_set_string3Luca Barbato2014-11-11
| | | | | | | | It is av_opt_set now.