| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
That part is a constant source of confusions for readers, this should
help clarify the apparently inverted logic.
|
|
|
|
|
|
|
| |
This makes the examples page less cluttered
Reviewed-by: Clément Bœsch <u@pkh.me>
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
Simplify.
|
|
|
|
| |
avcodec_close() does nothing in case the argument is NULL. Simplify.
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the next bump
Add function avfilter_graph_parse_ptr() and favor it in place of
avfilter_graph_parse(), which will be restored with the old/Libav
signature at the next bump.
If HAVE_INCOMPATIBLE_LIBAV_API is enabled it will use the
Libav-compatible signature for avfilter_graph_parse().
At the next major bump the current implementation of
avfilter_graph_parse() should be dropped in favor of the Libav/old
implementation.
Should address trac ticket #2672.
|
|
|
|
|
| |
The frame is not used after being added to the filter
graph, there is no need to keep the reference.
|
|
|
|
|
|
|
|
| |
AVABufferSinkParams are ignored by avfilter_graph_create_filter,
therefore the example is misleading. Use av_opt_set_int_list to
configure abuffersink directly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
| |
Fixes accessing freed memory
Signe-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
This filter is not required anymore with aformat. Drop it at next bump.
|
|
|
|
| |
display_frame() functions
|
|
|
|
| |
In particular, fix crash.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The size of the AVFrame structure is not part of the ABI;
it can grow with later versions. Therefore, applications
are not supposed to allocate AVFrame directly, they are
supposed to use avcodec_alloc_frame() instead.
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
|
| |
Free packets unconditionally after demuxing, and not only when the
packets belong to a given stream.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
|
| |
The filtering_audio.c example needs to be updated for the new
"abuffer" filter args.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
init_filters().
|
|
|
|
|
|
|
|
|
| |
The planar/packed switch and the packing_formats list is no longer
required, since the planar/packed information is now stored in the sample
format enum.
This is technically a major API break, possibly it should be not too
painful as we marked the audio filtering API as unstable.
|
| |
|
| |
|
|
|
|
|
| |
Decode errors can happen with concatenated MP3s
with different formats.
|
| |
|
|
Mostly based on doc/examples/filtering.c. lavfi API is still limited to
"buffer feeding" instead of "frame feeding" at the moment, so this
example code sticks with it.
|