summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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>
* riff: Add MultiScope II fourcc MSC2 as MJPEGCarl Eugen Hoyos2015-05-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* 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>
* dashenc: Reduce the segment duration if cutting out parts with edit listsMartin Storsjö2015-05-10
| | | | | | | | This makes sure that the time + duration of the first segment matches the start time of the next segment for e.g. AAC audio with encoder delay. Signed-off-by: Martin Storsjö <martin@martin.st>
* dashenc: replace attribute id with contentType for the AdaptationSet elementJames Almer2015-05-10
| | | | | | | | | | id should be an integer, not a string. It is also optional, so use contentType instead which is the proper attribute for these values. This fixes an MPD validation error. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Reduce the number of frames used to test video filtersLuca Barbato2015-05-10
| | | | | | | Use 5 frames for video filter tests and a single one for the pixelformat tests. Greatly reduces the test duration without reducing coverage.
* id3v2: Do not export empty APIC descriptionwm42015-05-09
| | | | | | APIC tags always have a description. Tag writers obviously leave it empty if there is no description. In this case, libavformat would export "" as title. Do not set the title instead.
* png: Set the color range as full rangewm42015-05-09
| | | | | | The format uses full range for the gray formats. CC: libav-stable@libav.org
* nut: Make sure to clean up on read_header failureLuca Barbato2015-05-09
| | | | | | Based on Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> work. CC: libav-stable@libav.org
* avi: Validate sample_sizeAndreas Cadhalpun2015-05-09
| | | | | | | And either error out or set it to 0 if it is negative. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nut: Check chapter creation in decode_info_headerAndreas Cadhalpun2015-05-08
| | | | | | | | This fixes a segmentation fault when accessing the metadata. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 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>
* mux: Do not leave stale side data pointers in ff_interleave_add_packet()Michael Niedermayer2015-05-06
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dump: Print AVAudioServiceType side dataVittorio Giovara2015-05-06
|
* 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.
* fate: Add a PICT testVittorio Giovara2015-05-06
| | | | This stimulates the direct pixel mode in Quickdraw decoder.
* lavf: Open PICT images with QuickdrawVittorio Giovara2015-05-06
| | | | | Update the pictor test to use the pictor codec, as both formats share the .pic file extension.
* 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.
* xcbgrab: Accept geometries matching the screen sizeNicolas George2015-05-06
| | | | Introduced in e8c4db0d4d077.
* Revert "lavfi: always check av_expr_parse_and_eval() return value"Anton Khirnov2015-05-05
| | | | | | | This reverts commit 63be97ec403023fb664798432acedaf6e6922527. All those calls were unchecked on purpose, as explained in the comments in the code.
* 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>
* configure: Allow log2 with MSVC 2013 onwards.Matt Oliver2015-05-02
| | | | | | | | | Only MSVC 2010 in x64 mode, in the static msvcrt, had a stray log2 function (which wasn't available in the headers). MSVC 2013 has got a proper log2 function though. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Use the right local variable in the MSVC and ICL probesMartin Storsjö2015-05-02
| | | | | | | | $cc is the compiler requested as main target compiler, while $_cc is the actual tool tested in the probe function right now (which can also be e.g. the host compiler). Signed-off-by: Martin Storsjö <martin@martin.st>
* avprobe: Print the display matrix from per-stream sidedataMartin Storsjö2015-05-02
| | | | | | | | | This is printed in a separate subgroup "displaymatrix" inside a new group named "sidedata". The subgroup has got two values, "rotation" (which is the parsed rotation from the matrix) and "matrix" containing the full actual values. Signed-off-by: Martin Storsjö <martin@martin.st>
* avprobe: Support writing arrays of integers without keysMartin Storsjö2015-05-02
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avconv: Add an option for automatically rotating video according to display ↵Martin Storsjö2015-05-02
| | | | | | | | | | | matrix The option is enabled by default, but can be disabled. If this is enabled, such side data isn't copied into the output stream (except when doing stream copy). Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: Add support for rotated videoMartin Storsjö2015-05-02
| | | | | | | | | This is enabled by default, but can be disbled via the -noautorotate option. Based on a patch by Clément Bœsch. Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: Factorize code for adding filters to the filter pipelineMartin Storsjö2015-05-02
| | | | | | Significantly based on a patch by Clément Bœsch. Signed-off-by: Martin Storsjö <martin@martin.st>
* 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]
* avplay: Do not print a possibly uninitialized valueLuca Barbato2015-04-30
| | | | | | Initialize `diff` to 0. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Validate the capture areaLuca Barbato2015-04-30
| | | | | | And notify why the capture is impossible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xcbgrab: Do not assume the non shm image data is always availableLuca Barbato2015-04-30
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* 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.