Statistics
| Branch: | Revision:

ffmpeg / libavfilter @ master

# Date Author Comment
e6e7ba0c 05/17/2011 01:05 AM Michael Niedermayer

Add some forgotten const to function arguments in libavfilter & libavformat.

Signed-off-by: Michael Niedermayer <>

d8c7a216 05/16/2011 09:50 PM Stefano Sabatini

drawtext: specify union type for setting default options

Fix warnings of the type:
vf_drawtext.c:NNN: warning: missing braces around initializer
vf_drawtext.c:NNN: warning: (near initialization for ‘drawtext_options[X].default_val’)

e8ea9c21 05/16/2011 09:50 PM Stefano Sabatini

drawtext: reindent after the previous commit

ce207e05 05/16/2011 09:50 PM Stefano Sabatini

drawtext: fix strftime() text expansion

The feature was dropped after the filter was partially rewritten and
recommitted.

Fix issue #207.

a05d0207 05/15/2011 10:28 AM Stefano Sabatini

showinfo: replace "CRC" by "checksum"

Indeed the Adler-32 checksum, which is computed by showinfo, is not
cyclic, so using the term "CRC" is wrong/confusing.

5a2ea3cf 05/15/2011 10:27 AM Stefano Sabatini

showinfo: fix vertical align nit

bb82ea79 05/15/2011 10:27 AM Stefano Sabatini

showinfo: fix computation of Adler checksum

Previously the code was computing the checksum only for the first line
of each plane.

6841c8c5 05/09/2011 02:50 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    log: Fix an oob array read.
    cosmetics: trim trailing whitespace in postproc
    Ban strncpy() it's too easy to misuse.
    psymodel: Remove wrapper functions.
    aacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and 'w'....
6d6b0c96 05/08/2011 01:29 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    drawtext: add documentation for the shadow parameters
    drawtext: add shadow support.
    drawtext: factor draw_glyphs.
    drawtext: fix and optimize yuv blend.
    drawtext: get rid of divisions in the inner loop....
ea7f73c5 05/07/2011 10:48 AM Stefano Sabatini

vsrc_buffer: during init, print information about timebase and sample aspect ratio

64c06615 05/07/2011 10:03 AM Stefano Sabatini

vsrc_buffer: simplify av_vsrc_buffer_add_frame*() interface

Now that pix_fmt, width, and height are directly embedded in the AVFrame,
there is no need to pass these values as separate arguments.

566666ca 05/07/2011 10:03 AM Stefano Sabatini

lavfi: add libavfilter/avcodec.h and avfilter_copy_frame_props()

avfilter_copy_frame_props() avoids code duplication and increases
robustness.

The added files libavfilter/avcodec.[ch] are used for containing
utilities useful for gluing togheter libavfilter and libavcodec.

18ded93a 05/07/2011 09:45 AM Stefano Sabatini

lavc: add format field to AVFrame

The format is a per-frame property, having it in AVFrame simplify the
operation of extraction of that information, since avoids the need to
access the codec/stream context.

22333a6b 05/07/2011 09:45 AM Stefano Sabatini

lavc: add width and height fields to AVFrame

width and height are per-frame properties, setting these values in
AVFrame simplify the operation of extraction of that information,
since avoids the need to check the codec/stream context.

c5420f10 05/07/2011 08:21 AM Michael Niedermayer

drawtext: add shadow support.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

e73127a4 05/07/2011 08:21 AM Michael Niedermayer

drawtext: factor draw_glyphs.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

a5b81c31 05/07/2011 08:21 AM Michael Niedermayer

drawtext: fix and optimize yuv blend.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

3953a880 05/07/2011 08:18 AM Michael Niedermayer

drawtext: get rid of divisions in the inner loop.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

e74bf3f3 05/07/2011 08:18 AM Michael Niedermayer

drawtext: simplify chroma blend and fix chroma alpha.

Signed-off-by: Anton Khirnov <>

a5b64584 05/07/2011 08:17 AM Stefano Sabatini

lavfi: Port drawtext filter by Hemanth from the libavfilter soc repo

With the following additions:
  • support to anti-aliased glyph rendering
  • support to UTF-8 text and Unicode chars rendering
  • support for RGB packed formats
  • fix minor errors and typos in the filter description...
c34cb130 05/06/2011 11:02 PM Michael Niedermayer

avfilter: dont use AVFilterLink as priv for pictures as its freed too early.
Signed-off-by: Michael Niedermayer <>

21d84246 05/06/2011 10:01 PM Michael Niedermayer

avfilter: Fix ticket82 / fix initial buffer values.
Signed-off-by: Michael Niedermayer <>

39f66edb 05/06/2011 09:53 PM Michael Niedermayer

AVFilter: use picture pool to avoid malloc().
Signed-off-by: Michael Niedermayer <>

fa3eddc0 05/06/2011 09:37 PM Michael Niedermayer

avfilter_unref_buffer: favor av_freep()
Signed-off-by: Michael Niedermayer <>

b000b86e 05/05/2011 01:30 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (23 commits)
    doc: Check standalone compilation before submitting new components.
    Fix standalone compilation of pipe protocol.
    Fix standalone compilation of ac3_fixed encoder.
    Fix standalone compilation of binkaudio_dct / binkaudio_rdft decoders....
0699dbb8 05/04/2011 02:35 AM Ronald S. Bultje

avfilter: check malloc return values.

f8af93ab 05/04/2011 02:29 AM Ronald S. Bultje

avfilter: don't av_malloc(0).

f97905e6 05/02/2011 02:46 PM Stefano Sabatini

scale: fix leak occurring when a scale filter is reconfigured

This currently only occurrs in vsrc_buffer in case of mid-stream
size/format change.

Fix trac issue #124.

0f1ef8a3 05/02/2011 02:46 PM Stefano Sabatini

vsrc_buffer: improve reporting in case of format/size change

35fe66ab 05/01/2011 11:10 AM Stefano Sabatini

lavfi: rename AVFilterBufferRefVideoProps.pixel_aspect to sample_aspect_ratio

Improve consistency with libavcodec.

This breaks libavfilter API/ABI.

The non-sequential 2.1.0 -> 2.4.0 bump is due to the mess previously
done with the lavfi minor number.

77e9dee8 05/01/2011 11:10 AM Stefano Sabatini

lavc: add a sample_aspect_ratio field to AVFrame

The sample aspect ratio is a per-frame property, so it makes sense to
define it in AVFrame rather than in the codec/stream context.
Simplify application-level sample aspect ratio information extraction,
and allow further simplifications.

1ba57272 05/01/2011 11:09 AM Stefano Sabatini

lavc: add a pkt_pos field to AVFrame

This is similar to what was done with pkt_pts. This simplifies the
operation of extracting the pos information from the AVPacket, and
allows further simplifications.

ffb5a0d5 04/30/2011 10:26 PM Michael Niedermayer

Merge commit '85770f2a2651497861ed938efcd0df3696ff5e45'

  • commit '85770f2a2651497861ed938efcd0df3696ff5e45':
    AVOptions: make default_val a union, as proposed in AVOption2.
    Move ff_dynarray_add to lavu and make it public.
    lavf: remove duplicate assignment in avformat_alloc_context....
85770f2a 04/30/2011 06:34 AM Anton Khirnov

AVOptions: make default_val a union, as proposed in AVOption2.

This breaks API and ABI.

a3b7dabb 04/29/2011 01:00 PM Diego Biurrun

vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.

c90626b2 04/28/2011 05:25 AM Peter Ross

hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <>

a1f4d075 04/28/2011 05:25 AM Peter Ross

crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <>

31d8467d 04/27/2011 09:12 AM Stefano Sabatini

lavfi: add showinfo filter

f7bdffb0 04/27/2011 09:03 AM Stefano Sabatini

lavfi: print key-frame and picture type information in ff_dlog_ref()

Signed-off-by: Stefano Sabatini <>

d7e5aeba 04/27/2011 01:51 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (23 commits)
    ac3enc: correct the flipped sign in the ac3_fixed encoder
    Eliminate pointless '#if 1' statements without matching '#else'.
    Add AVX FFT implementation.
    Increase alignment of av_malloc() as needed by AVX ASM....
075933a0 04/26/2011 09:55 PM Michael Niedermayer

vsrc_buffer: 10l mixed up input & output sizes. (funnily this worked 99% of the time) Signed-off-by: Michael Niedermayer <>

d84f191d 04/26/2011 04:18 PM Michael Niedermayer

vsrc_buffer: Reinit scale filter when an existing filter is used.
Signed-off-by: Michael Niedermayer <>

dc1de569 04/26/2011 04:17 PM Michael Niedermayer

vsrc_buffer: set output timebase when output equalization is done
Signed-off-by: Michael Niedermayer <>

a38cdfde 04/26/2011 04:16 PM Michael Niedermayer

vsrc_buffer: Set output size
Signed-off-by: Michael Niedermayer <>

ad0193bf 04/26/2011 04:15 PM Michael Niedermayer

vsrc_buffer: fix NULL dereference
Signed-off-by: Michael Niedermayer <>

bebe72f4 04/26/2011 06:38 AM Stefano Sabatini

lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums

Also deprecate av_get_pict_type_char() in favor of
av_get_picture_type_char().

The new enum and av_get_picture_type_char() are defined in libavutil.
This allows the use in libavfilter without the need to link against...

73a4f7c2 04/26/2011 05:43 AM Stefano Sabatini

pad: make the filter parametric

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

0bbb28c7 04/26/2011 05:43 AM royger

vsrc_movie: add key_frame and pict_type.

Signed-off-by: Roger Pau Monné <>
Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

5eb901cf 04/26/2011 05:42 AM Stefano Sabatini

vsrc_movie: fix leak in request_frame()

Also set movie->picref to NULL, in order to avoid a crash in uninit()
when movie->picref is unreffed again and it was already freed.

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

10d39405 04/26/2011 05:42 AM Roger Pau Monné

lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.

Signed-off-by: Anton Khirnov <>

7a11c82f 04/26/2011 05:38 AM Michael Niedermayer

vsrc_buffer: add sample_aspect_ratio fields to arguments.

This fixes aspect handling in ffmpeg.

This is based on a patch by Baptiste.

Signed-off-by: Anton Khirnov <>

2f84bb42 04/26/2011 05:37 AM Mark Himsley

lavfi: add fieldorder filter

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

68e23c08 04/26/2011 05:29 AM Stefano Sabatini

scale: make the filter parametric

Make the filter accept parametric expressions for the output video
size.

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

b137bf7d 04/26/2011 05:21 AM James Darnley

yadif: support 16-bit

Fixes by Michael Niedermayer <>

Signed-off-by: Anton Khirnov <>

88312a4d 04/26/2011 05:15 AM James Darnley

yadif: support more than yuv420p.

and correctly support grey8

Signed-off-by: Anton Khirnov <>

d85e18e6 04/26/2011 05:15 AM Michael Niedermayer

yadif: Fix assert() failure

Signed-off-by: Anton Khirnov <>

f80b381b 04/25/2011 08:45 PM Stefano Sabatini

graphparser: add a NULL check on the argument passed to strstr

Fix crash in create_filter() which occurrs if a scale filter with no
args is provided.

Signed-off-by: Anton Khirnov <>

c61bfc11 04/25/2011 08:45 PM Stefano Sabatini

setdar: prefer "sar" over "par" in log info message

This is more consistent with the terminology adopted by the aspect
filter names.

Signed-off-by: Anton Khirnov <>

b04d1abb 04/25/2011 08:45 PM Mark Himsley

fade: fix draw_slice() check on fade->factor value

draw_slice() checks that the fade factor is < 65536 and only
calculates the fade if so. But the fade factor is clipped in
end_frame() by av_clip_uint16() to 65535, so the fade is calculated
for every frame. This patch alters the check so that it compares with...

9026b27e 04/25/2011 08:45 PM Mark Himsley

fade: make draw_slice() chroma check against planes 1 and 2

draw_slice() checks that planes 0 and 1 of AVFilterBufferRef's data
are not NULL before manipulating planes 1 and 2. This patch makes the
check against planes 1 and 2. More senseful and possibly more robust....

3eb15d98 04/21/2011 04:46 PM Stefano Sabatini

mp: remove unused variable outlink in end_frame

Fix warning:
vf_mp.c: In function ‘end_frame’:
vf_mp.c:870: warning: unused variable ‘outlink’

Signed-off-by: Stefano Sabatini <>

e40cfb14 04/21/2011 04:45 PM Stefano Sabatini

mp: remove use of deprecated old eval API

The old API was deprecated and will be possibly removed, fix warnings
in libavfilter/libmpcodecs/vf_geq.c and libavfilter/libmpcodecs/vf_qp.c.

Signed-off-by: Stefano Sabatini <>

6d635148 04/21/2011 08:33 AM Stefano Sabatini

ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX

Fix compilatin after removal of FF_INTERNAL_MEM_TYPE_MAX_VALUE.

Signed-off-by: Stefano Sabatini <>

14e3b120 04/20/2011 03:38 PM Michael Niedermayer

Reduce picture size for yadif.

Signed-off-by: Anton Khirnov <>

efb5fa79 04/20/2011 02:48 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (37 commits)
    In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function.
    lavc: remove reference to opt.h from Makefile.
    prefer avio_check() over url_exist()...
484a3308 04/19/2011 01:28 PM Stefano Sabatini

pad: make the filter parametric

Address trac issue #61.

Signed-off-by: Stefano Sabatini <>

77f6b4d5 04/18/2011 06:40 PM royger

Added key_frame and pict_type to vsrc_movie

Signed-off-by: Roger Pau Monné <>
Signed-off-by: Michael Niedermayer <>

139f3ac4 04/18/2011 06:19 PM Anton Khirnov

Bump major versions of all libraries.

They've accumulated enough new APIs and corresponding deprecated cruft.

This breaks API and ABI.

dc8e1b75 04/18/2011 05:25 PM Stefano Sabatini

vsrc_movie: fix leak in request_frame()

Also set movie->picref to NULL, in order to avoid a crash in uninit()
when movie->picref is unreffed again and it was already freed.

Fix trac issue #66.

Signed-off-by: Stefano Sabatini <>

2d2b5a14 04/17/2011 09:59 PM Michael Niedermayer

10l, commit that should have been stashed into the merge.
Signed-off-by: Michael Niedermayer <>

c4079844 04/17/2011 09:43 PM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    ac3dec: fix processing of delta bit allocation information.
    vc1: fix fate-vc1 after previous commit.
    wmv3dec: fix playback of complex WMV3 files using simple_idct.
    make av_dup_packet() more cautious on allocation failures...
6001dad6 04/17/2011 05:31 PM Diego Biurrun

Replace more FFmpeg references by Libav.

c9678600 04/17/2011 03:33 PM Stefano Sabatini

scale: set evaluated value for the "out_w" and "out_h" constants

The constant values were never set, thus the evaluation of expressions
referencing those constants were resulting in an error.

Signed-off-by: Stefano Sabatini <>

e93d3334 04/17/2011 03:32 PM Stefano Sabatini

scale: fix computation for the "hsub" and "vsub" constants

Signed-off-by: Stefano Sabatini <>

09a1416d 04/16/2011 08:09 AM Roger Pau Monné

Add key_frame and pict_type to AVFilterBufferRefVideo.

b52a65cc 04/11/2011 09:29 AM Stefano Sabatini

vsrc_buffer.h: add file doxy

Signed-off-by: Stefano Sabatini <>

e601ff19 04/11/2011 09:28 AM Stefano Sabatini

vsrc_buffer.h: add multiple inclusion guards

Signed-off-by: Stefano Sabatini <>

f763a7c6 04/11/2011 09:19 AM Stefano Sabatini

vsrc_buffer: tweak error message in init()

Change:
Expected 7 arguments, but only %d found in '%s'\n
to:
Expected 7 arguments, but %d found in '%s'\n

as the user may provide more than 7 arguments, in that case the error
is not misleading.

aa0c515a 04/10/2011 10:14 PM Mark Himsley

lavfi: add fieldorder filter

Signed-off-by: Stefano Sabatini <>

4b9c03b7 04/06/2011 11:49 PM Michael Niedermayer

Align stack variables manually in yadif x86 code, should fix ticket25
Signed-off-by: Michael Niedermayer <>

d496d33d 04/05/2011 01:38 PM Stefano Sabatini

scale: make the filter parametric

Make the filter accept parametric expressions for the output video
size.

Signed-off-by: Stefano Sabatini <>

eb79c528 04/05/2011 01:21 AM Michael Niedermayer

Update yadif copyright header
Signed-off-by: Michael Niedermayer <>

de0f445b 04/05/2011 01:21 AM James Darnley

Factorise the C filtering in yadif

2657fd0c 04/05/2011 01:21 AM Michael Niedermayer

Yadif fixes that where missing from the patch
Signed-off-by: Michael Niedermayer <>

457be696 04/05/2011 01:21 AM James Darnley

Support 16-bit in yadif

257ac5f1 04/05/2011 01:21 AM James Darnley

support more than yuv420p in yadif

(and correctly support grey8)

2cae9809 04/04/2011 12:15 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    fate: fix partial run when no samples path is specified
    ARM: NEON fixed-point forward MDCT
    ARM: NEON fixed-point FFT
    lavf: bump minor version and add an APIChanges entry for avio changes
    avio: simplify url_open_dyn_buf_internal by using avio_alloc_context()...
7d948dc4 04/03/2011 02:40 PM Michael Niedermayer

Support changing pixel formats on avfilter input.
Fix issue2217
Signed-off-by: Michael Niedermayer <>

bbd1c43f 04/03/2011 02:40 PM Michael Niedermayer

Dont leak sws contexts.
Signed-off-by: Michael Niedermayer <>

aadfc9ee 04/03/2011 06:47 AM Brandon Mintern

lavfi: add fade filter

Port fade filter from libavfilter soc repo, with minor fixes by
Stefano.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

233ed6b3 04/03/2011 06:46 AM Michael Niedermayer

Change yadif to not use out of picture lines.

Fixes issue2272.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

679191a5 04/02/2011 06:27 PM Michael Niedermayer

yadif:Fix assert() failure

Signed-off-by: Michael Niedermayer <>

0fff764b 04/02/2011 09:48 AM Stefano Sabatini

drawtext: allow negative shadow offset values

2f86e7bd 03/30/2011 08:16 PM Stefano Sabatini

graphparser: add a NULL check on the argument passed to strstr

Fix crash in create_filter() which occurrs if a scale filter with no
args is provided.

c5099867 03/28/2011 08:50 PM Stefano Sabatini

mp: extend syntax, make it accept mp=filter=params

Make the mp wrapper accept the syntax mp=filter=params as alternative
to mp=filter:params. The alternative syntax is sligthly more readable
and should simplify copy&paste of MPlayer filter strings to the mp...

57e2ded4 03/27/2011 11:45 PM Michael Niedermayer

Implement interlaced scaling.
Fixes issue2632 if interl=1 is used or the automatic interlace detection is enabled
and works. This has the advantage compared to the patch in issue2632 that it causes
no speed loss and it also works when scaling is used. The disadvantage is that...

efc8c709 03/27/2011 05:00 PM Stefano Sabatini

drawtext: draw glyphs for the strftime()-expanded text

In draw_glyphs(), draw glyphs in dtext->expanded_text rather than in
dtext->text. Fix crash if a strftime() sequence is used.

3ea031b3 03/27/2011 02:27 PM Stefano Sabatini

setdar: prefer "sar" over "par" in log info message

This is more consistent with the terminology adopted by the aspect
filter names.

f5607c83 03/26/2011 02:24 AM Peter Ross

Make the hflip filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

af555733 03/26/2011 02:24 AM Peter Ross

Make the crop filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats