summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* hap: Fix slice size computationTom Butterworth2015-07-23
| | | | | | | | A bug was introduced in 977105407cae55876041dddbf4ce0934cdd4cd6c whereby when frame height wasn't divisible by the number of threads, pixels would be omitted from the bottom rows during decode. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dds: Fix the slice size computationTom Butterworth2015-07-23
| | | | | | | | A bug was introduced in 6b2b26e7af3ede0abfb46eb5725c26d1083f50bc whereby when frame height wasn't divisible by the number of threads, pixels would be omitted from the bottom rows during decode. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* af_channelmap: properly set the supported output channel layoutsAnton Khirnov2015-07-23
| | | | | | | | | | The current code expects query_formats() to be called exactly once, it will leak if it's not called at all (filter initialized, but never configured or used) or try to read freed memory if it's called more than once. Found-by: James Almer <jamrial@gmail.com> CC: libav-stable@libav.org
* asfdec: increment nb_streams right after the stream allocationAlexandra Hájková2015-07-23
| | | | | | to prevent possible memory leaks Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: set nb_streams to 0 in the asf_read_closeAlexandra Hájková2015-07-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: Add missing includeVittorio Giovara2015-07-22
|
* dds: Add a rgba fate testVittorio Giovara2015-07-22
|
* dds: Fix 32bpp bitmaps decodingMichael Niedermayer2015-07-22
| | | | | Found-By: ami_stuff Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dds: Fix palette decodingVittorio Giovara2015-07-22
| | | | | | Red and blue channels were decoded in the wrong order. Found-By: ami_stuff
* dds: Fix enum declarationVittorio Giovara2015-07-22
| | | | Drop the global variables with anonymous enum type.
* asfdec: avoid crash in the case when chunk_len is 0 or pkt_len is 0Alexandra Hájková2015-07-22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: close the demuxer properly when read_header is failingAlexandra Hájková2015-07-22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: factor out seeking to the Data Object outside whileAlexandra Hájková2015-07-22
| | | | | | return INVALIDDARA if Data Object was not found Signed-off-by: Anton Khirnov <anton@khirnov.net>
* qsvenc_hevc: use the correct HW plugin UIDAnton Khirnov2015-07-22
|
* checkasm: remove empty array initializer list in h264pred testJanne Grunau2015-07-22
| | | | Fixes MSVC compilation.
* checkasm: Always link staticallyLuca Barbato2015-07-21
| | | | Checkasm needs to use internal symbols that should not be made public.
* dds: Decode using optimal slices sizesLuca Barbato2015-07-21
| | | | | | | Enjoy some cache locality and use less threads. About the same speedup provided to HAP. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* hap: Decode using optimal slices sizesLuca Barbato2015-07-21
| | | | | | | Enjoy some cache locality and use less threads. About 5x speedup (from 60ms to 12ms to decode a 4k frame). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* parseutil: Use non ambiguous aliases for uhdLuca Barbato2015-07-21
| | | | uhd1 and uhd2 would be ambigous.
* arm: use a local label instead of the function symbol in ff_prefetch_armJanne Grunau2015-07-20
| | | | | | | | Avoids a relocation which might end out of range for thumb2. Reported-By: Ludovic Fauvet <etix@videolan.org> Bug-Id: https://bugs.webkit.org/show_bug.cgi?id=137022 CC: libav-stable@libav.org
* h264: aarch64: intra prediction optimisationsJanne Grunau2015-07-20
|
* Deprecate avctx.coded_frameVittorio Giovara2015-07-20
| | | | | | | | | | | | | | | | | The rationale is that coded_frame was only used to communicate key_frame, pict_type and quality to the caller, as well as a few other random fields, in a non predictable, let alone consistent way. There was agreement that there was no use case for coded_frame, as it is a full-sized AVFrame container used for just 2-3 int-sized properties, which shouldn't even belong into the AVCodecContext in the first place. The appropriate AVPacket flag can be used instead of key_frame, while quality is exported with the new AVPacketSideData quality factor. There is no replacement for the other fields as they were unreliable, mishandled or just not used at all. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Add a quality factor packet side dataVittorio Giovara2015-07-20
| | | | | | | | This is necessary to preserve the quality information currently exported with coded_frame. Add the new side data to every encoder that needs it, and use it in avconv. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Gather all coded_frame allocations and free functions to a single placeVittorio Giovara2015-07-20
| | | | | | | | | | | | | | Allocating coded_frame is what most encoders do anyway, so it makes sense to always allocate and free it in a single place. Moreover a lot of encoders freed the frame with av_freep() instead of the correct API av_frame_free(). This bring uniformity to encoder behaviour and prevents applications from erroneusly accessing this field when not allocated. Additionally this helps isolating encoders that export information with coded_frame, and heavily simplifies its deprecation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* flashsvenc: Keep coded_frame.key_frame a write-only variableVittorio Giovara2015-07-20
|
* ffv1enc: Use input frame to set SAR and interlacingVittorio Giovara2015-07-20
|
* ffv1enc: Keep coded_frame.key_frame a write-only variableVittorio Giovara2015-07-20
|
* qtrleenc: Keep coded_frame.key_frame a write-only variableVittorio Giovara2015-07-20
|
* libtheoraenc: Keep coded_frame.key_frame a write-only variableVittorio Giovara2015-07-20
|
* libvpxenc: Do not entangle coded_frameVittorio Giovara2015-07-20
| | | | Keep coded_frame.key_frame a write-only variable.
* libxvid: Do not entangle coded_frameVittorio Giovara2015-07-20
|
* svq1enc: Do not entangle coded_frameVittorio Giovara2015-07-20
|
* proresenc: Do not entangle coded_frameVittorio Giovara2015-07-20
|
* a64multienc: Do not entangle coded_frameVittorio Giovara2015-07-20
| | | | | | | | | | | This change (and the following ones of the same kind) is mainly to simplify wrapping this section with an #if FF_API block later on. No functional changes are applied, the fields of the context coded_frame fields are directly initialized, instead of keeping a reference to the coded_frame itself. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* roqvideoenc: Drop unneeded initializationVittorio Giovara2015-07-20
| | | | Its fields are never initialized to begin with.
* mpegvideo_enc: Drop unnneded initializationVittorio Giovara2015-07-20
| | | | coded_frame is already initialized where needed.
* parseutil: Add more resolution aliasesLuca Barbato2015-07-20
| | | | Add DCI 2k and 4k and uhd1 and uhd2.
* qsvenc: properly handle asynchronous encodingAnton Khirnov2015-07-19
| | | | Wait for async_depth frames before syncing.
* qsvdec: properly handle asynchronous decodingAnton Khirnov2015-07-19
| | | | Wait for async_depth frames before syncing.
* af_resample: do not touch the timestamps if we are not resamplingAnton Khirnov2015-07-19
| | | | | | | | | This filter currently assumes that the input audio is continuous and does some timestamps manipulation based on this assumption. This is unnecessary if we are only converting the channel layout or the sample format, without resampling. In such a case, just leave the timestamps as they are.
* avconv: split creating and (re-)configuring complex filtergraphsAnton Khirnov2015-07-19
| | | | | | | The current code is less than straightforward due to the fact that output streams can be created based on filtergraph definitions. This change should make the code simpler and more readable. It will also be useful in the future commits.
* avconv: create the complex filtergraphs earlierAnton Khirnov2015-07-19
| | | | | | Since global options are processed before all the other options now, we do not have to try creating the complex filtergraphs several times anymore, it is enough to do it once after the input files are opened.
* avconv: move the no streams failure to open_output_file()Anton Khirnov2015-07-19
| | | | | It is a better place for it, there is no reason to wait until transcode_init().
* avconv: factor out the output stream initializationAnton Khirnov2015-07-19
|
* avconv: use read_file() for reading the 2pass statsAnton Khirnov2015-07-19
| | | | | Also, drop the now unused cmdutils_read_file(). There is no reason to have two functions doing essentially the same thing.
* avconv: move handling the 2pass logfile into avconv_optAnton Khirnov2015-07-19
| | | | It more logically belongs there.
* avconv: set the encoding/decoding_needed flags earlierAnton Khirnov2015-07-19
| | | | This will be useful in the following commits.
* avconv: drop update_sample_fmt()Anton Khirnov2015-07-19
| | | | | | | There is only one decoder left that supports this (libopus, which is not used by default since we have a native one) and this code goes against the avconv design, since it propagates information back from the encoder to decoder.
* asfdec: make nb_sub to be unsigned intAlexandra Hájková2015-07-19
| | | | | | number of subpayloads should be always positive Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: read the replicated data in a separate functionAlexandra Hájková2015-07-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>