| Commit message (Collapse) | Author | Age |
... | |
| |
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
| |
Process 4 pixels at once.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
| |
This mirrors the demuxer behaviour and avoids accessing
AVCodecContext.codec, which should not be done in muxers.
|
| |
|
|
|
|
| |
Also, return a proper error code.
|
| |
|
| |
|
|
|
|
|
| |
It is not supposed to be set from outside of libavcodec.
Set average framerate instead.
|
| |
|
| |
|
|
|
|
|
|
| |
Do not call an AVCodecContext 'stream', that is highly confusing.
Also, add a local variable for the current AVStream in the loop over all
streams.
|
|
|
|
| |
Do not leave a non-zero extradata_size set on failure
|
|
|
|
|
|
| |
coded_frame is not meant to be changed from outside of lavc, and is not
used for decoding.
Set AVCodecContext.field_order instead.
|
| |
|
| |
|
| |
|
|
|
|
| |
Pad it with the required amount of zeros, check for malloc failure.
|
|
|
|
|
|
|
|
|
|
|
| |
Right now, the caller has to manually manage some allocated
AVCodecContext fields, like extradata or subtitle_header. This is
fragile and prone to leaks, especially if we want to add more such
fields in the future.
The only reason for this behaviour is so that the AVStream codec context
can be reused for decoding. Such reuse is discouraged anyway, so this
commit is the first step to deprecating it.
|
|
|
|
|
| |
This function should not modify any global state, so there should be no
reason for any locking.
|
|
|
|
|
|
| |
Fix incorrect wSamplesPerBlock(=0) written for ADPCM_IMA_WAV
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
|
|
| |
Most HLS implementation only support these codecs.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
|
|
| |
Clang Undefined Behaviour Sanitizer seems to make non-constant constant
expressions, making the compilation fail when they are used within
inline assembly if no optimization is requested.
Add -O1 to the cflags to hide the misbehaviour.
Bug-Id: 683
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
This seems to be needed on some 32bit arches.
|
|
|
|
|
| |
Opus celt decoding 11% faster and the iMDCT over 2.5 times faster on
Apple's A7.
|
| |
|
|
|
|
|
|
|
| |
avcodec might depend on avresample and with --as-needed required symbols
might be get removed if avresample is linked before avcodec.
Fixes link failures of avprobe and avplay on aarch64 with
--enable-neon-clobber-test.
|
| |
|
|
|
|
|
| |
If a non-NULL codec was passed to avcodec_alloc_context3(), private data
will be already allocated in dest.
|
|
|
|
|
|
| |
There should not be any valid reason anymore for passing completely
empty packets to lavf.
OTOH side data-only packets can be useful.
|
|
|
|
|
|
|
|
| |
Use it instead of checking CODEC_FLAG_BITEXACT in the first stream's
codec context.
Using codec options inside lavf is fragile and can easily break when the
muxing codec context is not the encoding context.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Initial implementation by Andrew D'Addesio <modchipv12@gmail.com> during
GSoC 2012.
Completion by Anton Khirnov <anton@khirnov.net>, sponsored by the
Mozilla Corporation.
Further contributions by:
Christophe Gisquet <christophe.gisquet@gmail.com>
Janne Grunau <janne-libav@jannau.net>
Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
| |
Avoids including disabled library Makefiles.
|
| |
|
|
|
|
|
| |
Instead of setting FFLIBS in each library Makefile configure
exports FFLIBS-$library in config.mak.
|
|
|
|
| |
Values are positive powers of two, so just replace it with right shift.
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
It leverages the new hwaccel 1.2 features:
- get_buffer2 is never called
- the internal context is automatically initialized/deinitialized
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
| |
|
|
|
|
|
| |
The current hwaccel is broken and cannot be fixed in a compatible
way. It will be deprecated and replaced with a new one.
|
| |
|
|
|
|
| |
It would reduce the boilerplate code users have to write.
|
|
|
|
| |
This describes more accurately what this field is for.
|
| |
|
|
|
|
| |
This way each decoder does not have to do the same thing manually.
|
|
|
|
| |
It will be useful in the following commits.
|
|
|
|
|
|
|
|
| |
Increment the pointer as needed.
Bug-Id: 592
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|