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 <firstname.lastname@example.org>
10l, commit that should have been stashed into the merge.Signed-off-by: Michael Niedermayer <email@example.com>
Merge remote branch 'qatar/master'
Replace more FFmpeg references by Libav.
scale: set evaluated value for the "out_w" and "out_h" constants
The constant values were never set, thus the evaluation of expressionsreferencing those constants were resulting in an error.
scale: fix computation for the "hsub" and "vsub" constants
Add key_frame and pict_type to AVFilterBufferRefVideo.
vsrc_buffer.h: add file doxy
vsrc_buffer.h: add multiple inclusion guards
vsrc_buffer: tweak error message in init()
Change:Expected 7 arguments, but only %d found in '%s'\nto:Expected 7 arguments, but %d found in '%s'\n
as the user may provide more than 7 arguments, in that case the erroris not misleading.
lavfi: add fieldorder filter
Align stack variables manually in yadif x86 code, should fix ticket25Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
scale: make the filter parametric
Make the filter accept parametric expressions for the output videosize.
Update yadif copyright headerSigned-off-by: Michael Niedermayer <email@example.com>
Factorise the C filtering in yadif
Yadif fixes that where missing from the patchSigned-off-by: Michael Niedermayer <firstname.lastname@example.org>
Support 16-bit in yadif
support more than yuv420p in yadif
(and correctly support grey8)
Support changing pixel formats on avfilter input.Fix issue2217Signed-off-by: Michael Niedermayer <email@example.com>
Dont leak sws contexts.Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
lavfi: add fade filter
Port fade filter from libavfilter soc repo, with minor fixes byStefano.
Signed-off-by: Michael Niedermayer <email@example.com>Signed-off-by: Anton Khirnov <firstname.lastname@example.org>
Change yadif to not use out of picture lines.
yadif:Fix assert() failure
Signed-off-by: Michael Niedermayer <email@example.com>
drawtext: allow negative shadow offset values
graphparser: add a NULL check on the argument passed to strstr
Fix crash in create_filter() which occurrs if a scale filter with noargs is provided.
mp: extend syntax, make it accept mp=filter=params
Make the mp wrapper accept the syntax mp=filter=params as alternativeto mp=filter:params. The alternative syntax is sligthly more readableand should simplify copy&paste of MPlayer filter strings to the mp...
Implement interlaced scaling.Fixes issue2632 if interl=1 is used or the automatic interlace detection is enabledand works. This has the advantage compared to the patch in issue2632 that it causesno speed loss and it also works when scaling is used. The disadvantage is that...
drawtext: draw glyphs for the strftime()-expanded text
In draw_glyphs(), draw glyphs in dtext->expanded_text rather than indtext->text. Fix crash if a strftime() sequence is used.
setdar: prefer "sar" over "par" in log info message
This is more consistent with the terminology adopted by the aspectfilter names.
Make the hflip filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
Make the crop filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
Update to latest MPlayer version.
Avoids warnings due to pointlessly casting away const.
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <firstname.lastname@example.org>
fade: fix draw_slice() check on fade->factor value
draw_slice() checks that the fade factor is < 65536 and onlycalculates the fade if so. But the fade factor is clipped inend_frame() by av_clip_uint16() to 65535, so the fade is calculatedfor every frame. This patch alters the check so that it compares with...
fade: make draw_slice() chroma check against planes 1 and 2
draw_slice() checks that planes 0 and 1 of AVFilterBufferRef's dataare not NULL before manipulating planes 1 and 2. This patch makes thecheck against planes 1 and 2. More senseful and possibly more robust.
remove definition of swab
right now swab is defined in libavfilter/libmpcodecs/mpbswap.hthis breaks mingw32 cross compiles. since it its not used, it should beremoved. alternatively swab has to be added to HAVE_LIST in configure.
Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"
This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.
Revert "use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*"
This reverts commit a03be6e1ba4cbf9984b0bbdb674704bbb2da6713.
Merge remote-tracking branch 'newdev/master'
Conflicts: Changelog doc/APIchanges doc/optimization.txt libavformat/avio.h
Merged-by: Michael Niedermayer <email@example.com>
Use av_strdup instead of strdup, fixes mingw build
use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
also update the multiple inclusion guards in config.h|mak
yadif: add parens around macro parameters
This fixes compilation with preprocessors which do not add whitespacearound replaced tokens, resulting in invalid expressions like 1--1.
Add libmpcodecs to the list of libavfilter subdirectories.
Add shadow support to the drawtext filter
factor draw_glyphs out of drawtext filter
Fix and optimize yuv blend in the drawtext filter
get rid of divisions in the inner loop of the drawtext filter
fix chroma alpha in the drawtext filter
Simplify chroma blend in the drawtext filter
lavfi: put color source in a dedicated file
Move the color source code from vf_pad.c to vsrc_color.c.
lavfi: add drawutils
Add drawutils.h and drawutils.c, and use them in the pad filter.The new functions are going to be shared by other filters.
Reduce picture size for yadif.Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
Change yadif to not use out of picture lines.Fixes issue2272.
Merge libavcore into libavutil
Done to keep ABI compatible. Otherwise this is just silly
It is pretty hopeless that other considerable projects will adoptlibavutil alone in other projects. Projects that need small footprintare better off with more specialized libraries such as gnulib or ratherjust copy the necessary parts that they need. With this in mind, nobody...
Make avfilter_config_links() propagate audio information of the source link if it is not explicitely set by the filter.
Add sample_aspect_ratio to AVFilterLink
libavfilter: add video movie source
See thread:Subject: [PATCH] movie video sourceDate: 2010-12-31 15:35:30 GMT
Signed-off-by: Janne Grunau <email@example.com>
Remove forgotten if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <firstname.lastname@example.org>(cherry picked from commit 290849e2a4e76484f1a34506782e8dbfe7bbe406)
Make avfilter_graph_free() free the graph.
Make avfilter_graph_free() free not only the internal structures, butalso the allocated graph, and set the graph pointer to NULL forincreased safety.
Signed-off-by: Mans Rullgard <email@example.com>...
Make avfilter_graph_parse() not free the input graph
Make avfilter_graph_parse() only release the internal structuresallocated during the parsing, and leave to free the graph itself tothe calling code.
This approach looks cleaner, as the graph is not allocated by the...
Log debug information in filter_samples().
Signed-off-by: Mans Rullgard <firstname.lastname@example.org>(cherry picked from commit 5fce60c3a9fbb21e580bad9165bf19d86ee7d96f)
Add sample_aspect_ratio fields to vsrc_buffer arguments.This fixes aspect handling in ffmpegThis is based on a patch by baptiste
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008(cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)
In the start_frame() debug log, print the reference pos value rather than the evaluated value converted to int.
That's required because -1 is evaluated as NAN, which converted backto int looks like a random number, this is especially annoying whendebugging sources with undefined pos (as the video4linux2 device)....
dprintf clashes with POSIX.1-2008
Remove useage of memalign() from libmpcodecs, not all platforms have memalign().
Add forgotten dependancy of avcodec for vf_mp.c
Make the avfilter debug functions and macros static to avfilter.c
This removes ff_get_ref_perms_string, ff_dprintf_ref and ff_dprintf_linkfro the interface of libavfilter.
Signed-off-by: Mans Rullgard <email@example.com>(cherry picked from commit eb7ccf8f3369f9e15029ce65370a114206b39fd5)
Warn about vf_mp
Enable libmpcodecs support.
Add ASMALIGN hack to patch around its recent removial from configure
Add libmpcodecs wrapper for libavfilter, still disabled
Hack libmpcodecs to make it buildable.
Remove dependancy of m_option & m_struct from libmpcodecs.
Avoid dependancy on global variable verbose in libmpcodecs/vf_pullup.c
Add #define _BSD_SOURCE where mplayer is not C99.
Add MPlayers libmpcodecs, this will be needed for our libavfilter wraper for it.
avfilter: remove stray semicolon
consolidate .gitignore patters into a single file
convert svn:ignore properties to .gitignore files
Make config_props() return AVERROR rather than 1 in case offailed SWScaleContext initialization.
Originally committed as revision 26395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix fate breakage in r26382.
Originally committed as revision 26383 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove useless free, fix warning:libavfilter/defaults.c: In function 'avfilter_default_get_audio_buffer':libavfilter/defaults.c:129: warning: 'buf' is used uninitialized in this function
Originally committed as revision 26382 to svn://svn.ffmpeg.org/ffmpeg/trunk