Michael Niedermayer
f7e0c18549
vf_overlay: prevent premature freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0ecaa447f6
vf_overlay: use unref_bufferP()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
dc49105c7f
sink_buffer: prevent prematurely freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1890853976
vf_thumbnail: prevent premature freeing of ref
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5aab307f30
vf_colormatrix: avoid using out_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
4c9080a7ef
lavfi: unref AVFilterLink.out_buf in ff_end_frame().
This reduces code duplication and prevents stale pointers from remaining
on the link.
13 years ago
Anton Khirnov
07bad27810
lavfi: unref AVFilterLink.cur_buf in ff_end_frame().
This reduces code duplication and prevents stale pointers from remaining
on the link.
13 years ago
Anton Khirnov
533fd5b5b4
vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().
13 years ago
Anton Khirnov
5b50ae94e6
vf_slicify: clear AVFilterLink.cur_buf in start_frame().
The buffer is passed on to the next filter, so we shouldn't keep any
pointers to it.
13 years ago
Anton Khirnov
0393af4f0b
vf_settb: simplify start_frame().
Avoid pointless filter ref/unref. Just use the reference passed to
start_frame().
13 years ago
Anton Khirnov
9203fa0b32
vf_fieldorder: don't give up its own reference to the output buffer.
13 years ago
Anton Khirnov
f493c644cd
vf_pad: don't give up its own reference to the output buffer.
13 years ago
Anton Khirnov
ad8b6326aa
vf_overlay: don't access a buffer reference that's been given away.
13 years ago
Anton Khirnov
7155763b78
vf_drawtext: don't give up its own reference to the input buffer.
Directly forwarding the input buffer to the next filter means that
drawtext no longer owns any references to it and thus shouldn't refer to
it in any way.
13 years ago
Anton Khirnov
d19499c796
vf_gradfun: don't store two pointers to one AVFilterBufferRef.
13 years ago
Anton Khirnov
0fe010a36f
vf_delogo: don't store two pointers to one AVFilterBufferRef.
13 years ago
Anton Khirnov
51a8049be8
vf_aspect: clear AVFilterLink.cur_buf in start_frame().
The buffer is passed on to the next filter, so we shouldn't keep any
pointers to it.
13 years ago
Robert Nagy
b70d89a033
lavfi: add avfilter_unref_bufferp()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Nicolas George
cb6a20fa56
lavfi: add FF_*LINK_IDX convenience macros.
13 years ago
Nicolas George
97f86680eb
lavfi: make copy_buffer_ref common.
13 years ago
Michael Niedermayer
e03cd1049e
Fix misspellings of FFmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ef1c0b5295
avfiltergraph: add some debug info about selected pixel formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
712d82130e
lavfi/avfiltergraph: apply misc fixes to fix avfilter_graph_request_oldest() @return doxy
13 years ago
Nicolas George
d483867525
avfiltergraph: document a catch in request_oldest().
This one is tricky. Consider a graph with two sink links, A and B.
request_oldest() requests on A, and A returns EOF. This EOF causes
a filter to flush pending frames to B; they are unrequested.
Then request_oldest() moves on to B, and B returns EOF.
13 years ago
Nicolas George
f98d814bb6
avfiltergraph: add a debug message on EOF.
13 years ago
Nicolas George
d06bfda07e
lavfi: rescale link->current_pts.
The doxy says, and the heap implementations assumes,
it is in AV_TIME_BASE units.
13 years ago
Stefano Sabatini
fda968aa8f
lavfi: decrease logging level of message showing initial parameters
Reduce log clutter, consistent with 1a49a169eb .
13 years ago
Steven Robertson
c88d98fe4a
lavfi/movie: reindent after the previous patch
Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Steven Robertson
ac726a4f0c
lavfi/movie: flush decoder frames on EOF
movie currently forwards EOF (or begins looping) immediately upon
reaching the last packet in the input stream, which can leave frames in
the decoder. This change first tries to read any remaining packets from
the decoder before forwarding EOF.
Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Stefano Sabatini
a5382b50f2
lavfi/buffersink: restore possibility to pass opaque data
Use the init_opaque callback for the purpose.
Fix regression introduced in a5e8c41c28 . In particular, fix lavfi
device in case a conversion to the supported (packed) formats is needed.
13 years ago
Stefano Sabatini
21d5609826
lavfi: add init_opaque callback
This will be used by filters which require an opaque field to be passed
in input. Should be required only for filters which imply a programmatic
use.
This is possibly a temporary solution, to be removed when we'll have a
clearer and better agreememnt of how/if to pass binary data for
initializing a filter.
See thread:
Subject: [FFmpeg-devel][PATCH] lavfi: add init2 callback
Date: Fri, 6 Jul 2012 01:22:17 +0200
13 years ago
Anton Khirnov
cd99146253
lavfi: add error handling to filter_samples().
13 years ago
Anton Khirnov
083d0f6be8
asplit: don't leak the input buffer.
13 years ago
Anton Khirnov
1ffb645662
af_resample: fix request_frame() behavior.
Make sure that an output frame has really been produced before returning
0.
13 years ago
Anton Khirnov
6f834293d3
af_asyncts: fix request_frame() behavior.
Make sure that an output frame has really been produced before returning
0.
13 years ago
Justin Ruggles
8ca08066fc
lavr: Use AV_SAMPLE_FMT_NONE to auto-select the internal sample format
Also make this the default value.
13 years ago
Nicolas George
299387ebf4
vf_settb: rename the file as f_settb.
13 years ago
Nicolas George
65e65e3ce2
settb: cosmetic: reindent vf_settb structure.
13 years ago
Nicolas George
ba856c0be5
lavfi: implement asettb filter.
13 years ago
Michael Niedermayer
e145afb4b0
vf_tinterlace: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
abb0a9982f
lavfi: do not pass opaque field to init functions
Fix signature mismatch warnings.
13 years ago
Michael Niedermayer
9fb08427d7
vf_pp: dont pass NULL into pp, it would fail
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
b7558ac293
af_amix: avoid spurious EAGAIN.
Input on/off state can change in request_samples(), which can result in
a state where only the first input is active. get_available_samples()
will then return 0, and request_frame() will fail with EAGAIN even
though there is data on the single active input.
Take this into account and check the number of active inputs again after
calling request_samples().
13 years ago
Anton Khirnov
54bf88e65f
af_amix: return AVERROR(EAGAIN) when request_frame didn't produce output.
0 should only be returned when there was at least one output frame.
13 years ago
Anton Khirnov
428b369804
af_amix: only consider negative return codes as errors.
13 years ago
Stefano Sabatini
3e3e414fe4
lavfi/buffersink: fix doxy, remove "video" reference
The file contains the code for the audio buffersink as well.
13 years ago
Mans Rullgard
7c29377b70
lavfi: reclassify showfiltfmts as a TESTPROG
This tool uses lavfi internal symbols not accessible in shared
libraries. TESTPROGS are linked statically to allow them use of
library internals not normally exported.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
2047e40e6e
Clarify Doxygen comment for FF_API_* #defines.
13 years ago
Carl Eugen Hoyos
71e5a14028
Suggest aresample filter if it was not compiled but requested.
13 years ago
Diego Biurrun
1a068bfefd
cosmetics: Consistently use C-style comments with multiple inclusion guards
13 years ago