summaryrefslogtreecommitdiffstats
path: root/libavutil
Commit message (Collapse)AuthorAgeFilesLines
* lavu/eval: add between() function.Clément Bœsch2013-03-222-2/+15
|
* lavu/opt: add AV_OPT_TYPE_DURATION.Nicolas George2013-03-203-2/+32
|
* Merge remote-tracking branch 'cigaes/master'Michael Niedermayer2013-03-201-5/+16
|\ | | | | | | | | | | | | | | | | | | * cigaes/master: lavu/frame: use channels rather than channel_layout. lavf: avformat_seek_file(): validate stream_index. lavf/concatdec: fix possible leak in case of malloc failure. lavfi/buffersink: check av_frame_ref() failure. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu/frame: use channels rather than channel_layout.Nicolas George2013-03-201-5/+16
| |
* | avutil/atomic: use av_assert0()Michael Niedermayer2013-03-201-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: fix compilationMichael Niedermayer2013-03-201-0/+1
|/ | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/opt: add AV_OPT_VIDEO_RATE optionPaul B Mahol2013-03-203-2/+64
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Merge commit '2c328a907978b61949fd20f7c991803174337855'Michael Niedermayer2013-03-203-2/+23
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2c328a907978b61949fd20f7c991803174337855': pixdesc: add a function for counting planes in a pixel format. avplay: remove the -debug option. Revert "asfenc: return error on negative timestamp" Conflicts: doc/APIchanges doc/ffplay.texi ffplay.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixdesc: add a function for counting planes in a pixel format.Anton Khirnov2013-03-193-1/+22
| |
* | avutil/add_to_pool: remove unused assgnmentMichael Niedermayer2013-03-191-1/+1
| | | | | | | | | | Fixed CID991859 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | AVFrame.pkt_dts: improve docsMichael Niedermayer2013-03-191-1/+3
| | | | | | | | | | | | Related to Ticket2375 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/buffer: Fix race in pool.Michael Niedermayer2013-03-182-0/+9
| | | | | | | | | | | | | | | | | | | | This race will always happen sooner or later in a multi-threaded environment and it will over time lead to OOM. This fix works by spinning, there are other ways by which this can be fixed, like simply detecting the issue after it happened and freeing the over-allocated memory or simply using a mutex. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc,lavu: fix two doxy mixup between h/v chroma shift.Clément Bœsch2013-03-181-2/+2
| |
* | avutil/frame: typoMichael Niedermayer2013-03-181-1/+1
| | | | | | | | | | found by ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: document alignment and padding requirementsMichael Niedermayer2013-03-181-0/+10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/get_pool: remove dead operations whichs result is never used.Michael Niedermayer2013-03-171-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/get_pool: Remove redundant initial atomic operationMichael Niedermayer2013-03-171-3/+3
| | | | | | | | | | | | 602->442 dezicycles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: fix video buffer allocationMichael Niedermayer2013-03-171-1/+1
| | | | | | | | | | | | | | | | The padding was lost during porting from avcodec Should fix out of array accesses Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/eval: add bitor and bitand functionsStefano Sabatini2013-03-172-2/+9
| | | | | | | | Warning note suggested by Reimar.
* | Merge commit 'e4a7b2177d14678ae240edcabaacfe2b14619b7b'Michael Niedermayer2013-03-161-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit 'e4a7b2177d14678ae240edcabaacfe2b14619b7b': vf_showinfo: remove its useless init function AVOptions: fix using named constants with child contexts. Conflicts: libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVOptions: fix using named constants with child contexts.Anton Khirnov2013-03-161-4/+4
| | | | | | | | | | The named constant needs to be searched for in the same object on which the option is set, i.e. target_obj.
| * AVOption: remove an unused function parameter.Anton Khirnov2013-03-161-6/+4
| |
* | Merge commit 'ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6'Michael Niedermayer2013-03-161-2/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit 'ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6': lzo: fix overflow checking in copy_backptr() flacdec: simplify bounds checking in flac_probe() atrac3: avoid oversized shifting in decode_bytes() Conflicts: libavformat/flacdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lzo: fix overflow checking in copy_backptr()Xi Wang2013-03-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The check `src > dst' in the form `&c->out[-back] > c->out' invokes pointer overflow, which is undefined behavior in C. Remove the check. Also replace `&c->out[-back] < c->out_start' with a safe form `c->out - c->out_start < back' to avoid overflow. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil/frame: add AVBufferRef for qp tableMichael Niedermayer2013-03-152-0/+45
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'f099d3d1d5466bd63f4ab36270d169ff9ea613b8'Michael Niedermayer2013-03-142-0/+60
|\ \ | |/ | | | | | | | | | | | | * commit 'f099d3d1d5466bd63f4ab36270d169ff9ea613b8': Add av_log_{ask_for_sample|missing_feature} replacements to libavutil ismindex: Check the return value of allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add av_log_{ask_for_sample|missing_feature} replacements to libavutilDiego Biurrun2013-03-132-0/+60
| | | | | | | | | | This allows reporting missing features and requesting samples from all libraries in a standard way; with a simplified API.
* | lavu/frame: free frame metadata when unrefing a frame.Hendrik Leppkes2013-03-131-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/frame: av_frame_make_writable: set the channels on the new frame.Hendrik Leppkes2013-03-131-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/frame: copy all frame properties in av_frame_copy_propsHendrik Leppkes2013-03-131-0/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avframe: Copy buffer type in copy_props.Carl Eugen Hoyos2013-03-131-0/+3
| | | | | | | | Fixes VDPAU decoding with MPlayer.
* | Merge commit 'd6d369bf1370999896500ae7eb5b9447ab635a3d'Michael Niedermayer2013-03-131-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit 'd6d369bf1370999896500ae7eb5b9447ab635a3d': atomic: prefer gcc builtins over win32 atomics, if available. avframe: copy reordered_opaque in copy_props Conflicts: libavutil/frame.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * atomic: prefer gcc builtins over win32 atomics, if available.Hendrik Leppkes2013-03-111-3/+3
| | | | | | | | | | | | | | The mingw win32 atomics appear to be faulty, so they should not be used if the gcc ones are available. Signed-off-by: Martin Storsjö <martin@martin.st>
| * avframe: copy reordered_opaque in copy_propsJanne Grunau2013-03-111-0/+1
| | | | | | | | Fixes video playback in applications still using reordered_opaque.
* | Merge commit '6327c10702922eabcb1c6170abd3f03d23ce4c51'Michael Niedermayer2013-03-121-0/+8
|\ \ | |/ | | | | | | | | | | | | | | * commit '6327c10702922eabcb1c6170abd3f03d23ce4c51': atomic: fix CAS with armcc. png: use av_mallocz_array() for the zlib zalloc function libmp3lame: use the correct remaining buffer size when flushing Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * atomic: fix CAS with armcc.Anton Khirnov2013-03-091-0/+8
| | | | | | | | | | | | On the current code, armcc will fail with: "libavutil/atomic_gcc.h", line 52: Error: #2771: first argument must be a pointer to integer or enumeration type
* | Merge commit '666fe5da47d127074be7f0e2bac93db6af8b4a30'Michael Niedermayer2013-03-121-0/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit '666fe5da47d127074be7f0e2bac93db6af8b4a30': atomic: Exclude the unsupported implementation headers from checkheaders avconv: do not silently ignore unused codec AVOptions. Conflicts: ffmpeg_opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * atomic: Exclude the unsupported implementation headers from checkheadersMartin Storsjö2013-03-081-0/+4
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-082-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Not all gcc configurations have an implementation of all the atomic operations, and some gcc configurations have some atomic builtins implemented but not all. Thus check for the most essential function, whose presence should indicate that all others are present as well, since it can be used to implement all the other ones. Signed-off-by: Martin Storsjö <martin@martin.st>
| * atomic: Add include guards to the implementation headersMartin Storsjö2013-03-083-0/+14
| | | | | | | | | | | | | | | | This makes them pass standalone compilation tests. Previously, they included atomic.h which included themselves again, leading to double definitions. Signed-off-by: Martin Storsjö <martin@martin.st>
* | dsputil: make selectable.Ronald S. Bultje2013-03-121-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '7b89cd20d844cbe763ca34e63e99d110043cf241'Michael Niedermayer2013-03-121-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '7b89cd20d844cbe763ca34e63e99d110043cf241': eamad: allocate a dummy reference frame when the real one is missing Replace remaining includes of audioconvert.h with channel_layout.h Replace some forgotten instances of PIX_FMT_* with AV_PIX_FMT_*. Conflicts: libavcodec/h264.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace remaining includes of audioconvert.h with channel_layout.hAnton Khirnov2013-03-081-1/+1
| |
* | Merge commit '8df23e938b4022d6e6e9e1180ea6418abae74fda'Michael Niedermayer2013-03-121-1/+25
|\ \ | |/ | | | | | | | | | | | | * commit '8df23e938b4022d6e6e9e1180ea6418abae74fda': lavc: postpone the removal of request_channels API. AVFrame: deprecate all now unused fields Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVFrame: deprecate all now unused fieldsAnton Khirnov2013-03-081-1/+25
| |
* | buffer: use the atomic get instead of the add and fetch variant.Clément Bœsch2013-03-121-1/+1
| |
* | get_video_buffer: add vertical paddingMichael Niedermayer2013-03-121-1/+1
| | | | | | | | | | | | Fix memory corruption Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | atomic: prefer gcc builtins over win32 atomics, if available.Hendrik Leppkes2013-03-121-3/+3
| | | | | | | | | | | | | | The mingw win32 atomics appear to be faulty, so they should not be used if the gcc ones are available. Signed-off-by: Martin Storsjö <martin@martin.st>
* | atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Not all gcc configurations have an implementation of all the atomic operations, and some gcc configurations have some atomic builtins implemented but not all. Thus check for the most essential function, whose presence should indicate that all others are present as well, since it can be used to implement all the other ones. Signed-off-by: Martin Storsjö <martin@martin.st>
* | mem: Fix usage of memalign() on DJGPP.Fabrizio Gennari2013-03-101-0/+4
| | | | | | | | | | Credits to Khusraw of bttr-software.de forum. Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
OpenPOWER on IntegriCloud