| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Fixed CID1135755
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
It is implied by av_register_all(). Simplify.
|
| |
|
| |
|
|
|
|
|
| |
The avcodec_get_frame_defaults() function is deprecated and its use
doesn't seem required.
|
|
|
|
|
|
|
|
| |
Set duration to 10 seconds, after it was increased from 5 to 200 seconds
in 8d80f3cb877b890889b1673029387229648901ed.
200 seconds will generate too much data which is annoying especially when
testing.
|
| |
|
|
|
|
| |
More consistent and more future-proof.
|
|
|
|
| |
Also log output packet information.
|
|
|
|
| |
Show how to perform streamcopy from one container to another.
|
|
|
|
| |
Rely on frame_count. Also more consistent with audio path.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes use of the example with encoders which use tha AVFrame w/h/pix_fmt fields
FFV1 is one of these codecs
We cannot easily workaround the not set fields in common code because the API
has AVFrame constant for the encoders.
Alternatives would be to fix the API or to duplicate the struct and fill in
missing fields. Or as is to require all user apps to set this correctly and
maybe simplify for that case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
In particular, fix trac ticket #3231.
|
| |
|
|
|
|
| |
Simplify logic, avoid multiple unnecessary alloc/free operations.
|
|
|
|
|
|
|
|
|
|
| |
timebase
Fix PTS set on the frame when encoding, which must be specified in the
encoder timebase or this will confuse the encoder.
When muxing the packet, the PTS/DTS generated by the encoder is then
rescaled to the stream timebase.
|
|
|
|
|
| |
Avoid the need of tweaking, also show how to get list of supported sample
formats.
|
| |
|
|
|
|
|
|
|
| |
- do not allocate resample dst buffer when resample is off
- free sample buffers in addition to freeing data pointer arrays
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
|
|
| |
sample_fmt
We generate S16 samples and we should allocate the right buffer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
|
| |
Hi list! Since my last patch (fix 2 memleaks in doc/examples/muxing.c)
I found more problems to fix.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
| |
negative value
Fix broken != 0 check.
|
|
|
|
|
|
| |
Fixes CID1135756.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
|
|
|
|
|
|
| |
Fixes CID1135757.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The open_codec_context function, when it fails to find a codec, now
return AVERROR(EINVAL) to signal an error.
Before it would return the stream index, which was always >= 0, and
continue as if a codec was found. This change make it fail faster,
instead of repeated failed tries to decode frames with no codec.
Signed-off-by: Even Wiik Thomassen <e.thomassen@sportradar.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
|
|\
| |
| |
| |
| |
| |
| | |
* commit '48d17ee6dc2b2a552f645484f200c2946bf24607':
api-example: remove an unneeded call to avcodec_get_frame_defaults().
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9':
Replace all uses of avcodec_free_frame with av_frame_free().
Conflicts:
doc/examples/decoding_encoding.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
| | |
|
| |
| |
| |
| |
| |
| | |
Fixes use of uinitialized data and crash
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
| |
| |
| |
| |
| |
| | |
Support the case when multiple frames are contained in a single packet.
In particular, fix fate-samples/lossless-audio/luckynight-partial.shn
sample decoding.
|
| | |
|
| |
| |
| |
| | |
Set the value on the filter context instead. Simplify.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Simplify.
|
| | |
|
| |
| |
| |
| | |
This is required to build with FFmpeg compilation options.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This codepath is not implemented and just crashes, also its simpler
without special cases, which makes sense for an example
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
| |
| |
| |
| | |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
| |
| |
| |
| | |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* qatar/master:
Add an audio transcoding example.
Conflicts:
configure
doc/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
| |
| |
| |
| | |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
This includes moving libavformat/output-example to doc/examples/output.
|
|
|
|
| |
avcodec_close() does nothing in case the argument is NULL. Simplify.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* commit '5b9c3b4505206143d85398c1410949319fa1180f':
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
Conflicts:
doc/examples/decoding_encoding.c
doc/examples/muxing.c
ffmpeg.c
libavcodec/alacenc.c
libavcodec/libopenjpegenc.c
libavcodec/libvpxenc.c
libavcodec/pcm.c
libavcodec/xbmenc.c
libavcodec/xwdenc.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
| |
That example shows how the decoding process works, not only the
demuxing.
|