summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* libx265: Use the Multi-library InterfaceGopu Govindaswamy2015-05-13
| | | | | | | | | | | | | | | Use the Multi-library interface to load at runtime x265 libraries supporting alternative bit depths (e.g. 8bit and 16bit). The linked library will try to load the library supporting the pixel format if it is not supported by itself. Fallback requesting the native library (passing 0 to x265_api_get) if a library supporting the requested bit depth is not available. Signed-off-by: Gopu Govindaswamy <gopu@multicorewareinc.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mjpegenc: Fix JFIF header byte orderingShiina Hideaki2015-05-12
| | | | | | | | The header had a wrong version description. Bug-Id: 808 Signed-off-by: Shiina Hideaki <shiina@yndrd.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dnxhd: Print unknown header when foundVittorio Giovara2015-05-12
|
* quickdraw: Skip the empty 512 byte header for imagesVittorio Giovara2015-05-12
| | | | Found-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
* quickdraw: Make the palette opaqueCarl Eugen Hoyos2015-05-12
| | | | | | Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dca_parser: Extend DTS core sync word and fix existing checkfoo862015-05-12
| | | | | | | | | | | | The previous version checked for 14-bit streams and did not properly work across buffer boundaries. Use the 64-bit parser state to make extended sync word detection work across buffer boundary and check the extended sync word for 16-bit LE and BE core streams to reduce probability of alias sync detection. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* png: Set the color range as full rangewm42015-05-09
| | | | | | The format uses full range for the gray formats. CC: libav-stable@libav.org
* alac: Reject rice_limit 0 if compression is usedAndreas Cadhalpun2015-05-08
| | | | | | | | | | | If in compression mode rice_limit = 0 leads to call `show_bits(gb, k)` in `decode_scalar` with k = 0. Request a sample in case it is valid and it should be accepted. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* ape: Support _0000 files with nblock smaller than 64Andreas Cadhalpun2015-05-08
| | | | | | | | The decode_array_0000 assumed that 64 is the minimal block size while it is not. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libx265: Fix 'braces around scalar initializer' warningVittorio Giovara2015-05-06
| | | | | | | | x265 Reordered the x265_picture fields in the commit https://github.com/videolan/x265/commit/51b1518de2414431f36eac592db15b667c25a7b9#diff-945b5354d8767dfac13334f2d22cf58fR107 Now the first field is an integer and not an array.
* quickdraw: Support direct pixel blocksVittorio Giovara2015-05-06
| | | | | Data is stored in separated components so rework decode_rle() to support stepping and offsets.
* quickdraw: Switch to greedy parsingVittorio Giovara2015-05-06
| | | | | | | | | | | | | | Quickdraw packs data as a series of codes that the application is supposed to handle, but it does not define any order in which they might appear. Since it's unfeasible to support *all* opcodes defined by the spec, only handle well-known blocks containing video data and ignore any unknown or unsupported ones. Move palette loading and rle decoding to separate functions to resue them in other blocks and drop format initialization in init since it can support more formats than pal8. Validate width and height.
* quickdraw: Convert to bytestream2Vittorio Giovara2015-05-06
| | | | | Add appropriate error messages and reduce r, g, b variables scope. Drop the now redundant line checks in RLE decoding.
* alsdec: only adapt order for positive max_orderAndreas Cadhalpun2015-05-05
| | | | | | | | For max_order = 0 the clipping range is invalid. (amin = 2, amax = 1) CC: libav-stable@libav.org Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* alsdec: check sample pointer range in revert_channel_correlationAndreas Cadhalpun2015-05-05
| | | | | | | | | Also change the type of begin, end and smp to ptrdiff_t to make the comparison well-defined. CC: libav-stable@libav.org Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aacpsy: correct calculation of minath in psy_3gpp_initAndreas Cadhalpun2015-05-05
| | | | | | | | | | | | The minimum of the ath(x, ATH_ADD) function depends on ATH_ADD. This patch uses the first order approximation to determine it. For ATH_ADD = 4 this results in the value at 3407.06812 (-5.24241638) not the one at 3410 (-5.24237967). CC: libav-stabl@libav.org Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* alsdec: limit avctx->bits_per_raw_sample to 32Andreas Cadhalpun2015-05-05
| | | | | | | | | avctx->bits_per_raw_sample is used in get_sbits_long, which only supports up to 32 bits. CC: libav-stable@libav.org Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aasc: return correct buffer size from aasc_decode_frameAndreas Cadhalpun2015-05-05
| | | | | | CC: libav-stable@libav.org Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dnxhddec: Fix pixel format changeCarl Eugen Hoyos2015-05-01
| | | | | | Regression introduced in 598f7d046cbf306706623210c5baafa3b7cd1df3. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* ffv1enc: Add const attribute to input frameVittorio Giovara2015-05-01
| | | | | | warning: assigning to 'AVFrame *' (aka 'struct AVFrame *') from 'const AVFrame *' (aka 'const struct AVFrame *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
* rawenc: properly allocate coded_frameAnton Khirnov2015-04-29
|
* h264: use properly allocated AVFramesAnton Khirnov2015-04-29
|
* h264: embed the DPB in the contextAnton Khirnov2015-04-29
| | | | | It now has a fixed size and is initialized only once, so there is no point in allocating it separately.
* h264: merge the init and reinit paths in update_thread_context()Anton Khirnov2015-04-29
| | | | | There is no real need to handle the init case specially, everything necessary is initialized in the reinit code as well.
* h264: drop the reinit parameter from init_slice_header()Anton Khirnov2015-04-29
| | | | | It is only used to decide whether to call free_tables(), but that function is safe to call on an uninitialized context as well.
* h264: update the current bit depth/chroma type in init_slice_header()Anton Khirnov2015-04-29
| | | | | With frame threading, it is currently only updated in the context where the change occurs, but not in any other contexts.
* h264: copy nal_length_size in update_thread_contextAnton Khirnov2015-04-29
| | | | | | It does not make sense to copy is_avc without copying this as well. This patch should not change anything for now, but will have an effect in later commits.
* h264: drop a comment that carries no useful informationAnton Khirnov2015-04-29
|
* h264: move freeing the escaped RBSP buffer to free_context()Anton Khirnov2015-04-29
| | | | | It does not logically belong in free_tables(), since it's not allocated in alloc_tables() and its size has nothing to do with the frame size.
* h264: eliminate ff_h264_set_parameter_from_sps()Anton Khirnov2015-04-29
| | | | | | | | | | | | | | That function currently does two things -- reinitializing the DSP contexts and setting low_delay based on the SPS values. The former more appropriately belongs in h264_slice_header_init(), while the latter only really makes sense in decode_slice_header(). The third call to ff_h264_set_parameter_from_sps(), done immediately after parsing a new SPS, appears to serve no useful purpose, so it is just dropped. Also, drop now unneeded H264Context.cur_chroma_format_idc.
* h264: move context reinit lower down in update_thread_context()Anton Khirnov2015-04-29
| | | | | It uses some fields from the SPS, which is not yet set where the reinit is called currently.
* h264: move the DPB init/uninit to init_context()/free_context()Anton Khirnov2015-04-29
| | | | | | | | | | Currently, the DPB is initialized in alloc_tables() and uninitialized in free_tables(), but those functions manage frame size-dependent variables, so DPB management does not logically belong in there. Since we want the init/uninit to happen exactly once per the context lifetime, init_context()/free_context() are the proper place for this code.
* h264: drop H264Context.ouputed_pocAnton Khirnov2015-04-29
| | | | It is only set, but never used for anything.
* h264: drop needs_reallocAnton Khirnov2015-04-29
| | | | It is not needed anymore since switching to refcounted frames.
* h263: Convert function to macroVittorio Giovara2015-04-28
|
* h263: Drop commented-out code and a related otherwise unused functionVittorio Giovara2015-04-28
|
* jpeglsenc: Mark codec as init-thread-safe and init-cleanupVittorio Giovara2015-04-28
| | | | Fixes a memory leak on init failure.
* jpeglsenc: Check memory allocationsVittorio Giovara2015-04-28
| | | | | Convert exisiting free functions to av_freep() to avoid accidental double frees, and always intialize all buffers to NULL.
* flacenc: Move a scratch buffer to struct used by the functionVittorio Giovara2015-04-28
| | | | | This avoids allocating/freeing memory at every function call, checking its return value, and carrying the error around.
* vaapi: Fix -Wimplicit-function-declaration for ff_dlog() usageRico Tzschichholz2015-04-26
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dss_sp: use lowercase codec name without whitespaceAndreas Cadhalpun2015-04-24
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* libxvid: Make codec use the init-cleanup flag and mark it as init-thread-safeVittorio Giovara2015-04-24
| | | | This takes care of memory leaks on init error.
* libx264: Make codec use the init-cleanup flag and mark it as init-thread-safeVittorio Giovara2015-04-24
| | | | This takes care of memory leaks on init error.
* lclenc: Mark codec as init-thread-safe and init-cleanupVittorio Giovara2015-04-24
|
* hqx: Mark codec as init-thread-safe and init-cleanupVittorio Giovara2015-04-24
|
* huffyuvenc: Mark codec as init-thread-safe and init-cleanupVittorio Giovara2015-04-24
|
* asvenc: Mark codec as init-thread-safe and init-cleanupVittorio Giovara2015-04-24
|
* hq_hqa: Fix table data for profile 17Vittorio Giovara2015-04-24
| | | | | | The table had a wrong table height and was missing the first line of bytes. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* internal: Make dlog/tlog a no-op when disabledVittorio Giovara2015-04-24
| | | | Improves Coverity analysis, avoiding "double semicolon" CIDs.
* prores: Set the bits_per_coded_sample for alpha pix_fmtLuca Barbato2015-04-22
| | | | Improve the compatibility with other software.