drawtext: factor draw_glyphs.
Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>Signed-off-by: Anton Khirnov <email@example.com>
drawtext: fix and optimize yuv blend.
drawtext: get rid of divisions in the inner loop.
drawtext: simplify chroma blend and fix chroma alpha.
Signed-off-by: Anton Khirnov <firstname.lastname@example.org>
lavfi: Port drawtext filter by Hemanth from the libavfilter soc repo
mov: fix composition timestamps on movie fragments.
This fixes, for instance, the case that there is a track that has some samples with composition time offset and has a track run without sample-composition-time-offsets-present.
wmavoice: Use proper size in memeset().
sizeof(array_functrion_argument) gives the size of the pointer type notthe size of the array to which it points.
configure: warn if pkg-config is missing
Signed-off-by: Mans Rullgard <email@example.com>
doc: Check standalone compilation before submitting new components.
Fix standalone compilation of pipe protocol.
file_check() is not only used by the file protocol, adjust #ifdef accordingly.
Fix standalone compilation of ac3_fixed encoder.
Fix standalone compilation of binkaudio_dct / binkaudio_rdft decoders.
Fix standalone compilation of IMC decoder.
Fix standalone compilation of WTV demuxer.
Fix standalone compilation of MXPEG decoder.
flashsv: K&R cosmetics
matroskaenc: fix memory leak
This fixes a memory leak occurring when no cue points are definedsince commit 91819763.
vc1: make overlap filter for I-frames bit-exact.
vc1dec: use s->start/end_mb_y instead of passing them as function args.
Revert "VC1: merge idct8x8, coeff adjustments and put_pixels."
This reverts commit f8bed30d8b176fa030f6737765338bb4a2bcabc9. The reasonfor this is that the overlap filter, which runs after IDCT, should runon unclamped values, and thus IDCT and put_pixels() cannot be merged if...
Replace strncpy() with av_strlcpy().
indeo3: Eliminate use of long.
get_bits: make cache unsigned to eliminate undefined signed overflow.
asfdec: fix assert failure on invalid files
Add an extra size validity check in asf_read_frame_header(). Withoutthis asf->packet_size_left may become negative, which triggers anassertion failure later.
Signed-off-by: Ronald S. Bultje <firstname.lastname@example.org>
avfilter: check malloc return values.
nutenc: check malloc return values.
avfilter: don't av_malloc(0).
nutenc: don't av_malloc(0).
mpegvideo: don't av_malloc(0).
asfdec: fix parsing of packets that overrun into padding.
Implement fate-rsync target
Make ffmpeg support generic data stream
The patch is the first step to support -dcodec copy
Tested on a Mac Pro, 2 CPUs, 2 cores each, OSX 10.6.6:
time ./ffmpeg -v 0 -vsync 0 -threads  -i \ ~/Downloads/sintel_trailer_1080p_vp8_vorbis.webm \ -f null -vcodec rawvideo -an -1: 0m14.630s (89.9 fps)2: 0m8.056s (163.2 fps)...
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
Signed-off-by: Diego Biurrun <email@example.com>
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().
dpx: Do not use DPX encoder for decoding.
10l to the one who hasn't checked this.
ALPHA: Replace sized int_fast integer types with plain int/unsigned.
int/unsigned is the natural memory access type for CPUs, using sized typesfor temporary variables, counters and similar just increases code size andcan possibly cause a slowdown.
DPX image encoder
DPX decoder: read sample aspect ratio
Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>
DPX decoder: add buffer size checks.
ac3enc: clip large coefficient values and negative exponents rather than usingav_assert2().
ac3enc: do not store a bandwidth code for each channel.
Although AC-3 allows it, it's not very useful. The encoder uses the same codefor all full-bandwidth channels.
ac3enc: remove bandwidth reduction as fallback for bit allocation failure.
It was only needed at low bitrates, which now already use a low bandwidth, sothe bandwidth reduction is no longer needed.
ac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()
ac3enc: return error if frame+exponent bits are too large instead of usingav_assert2().
This can occur in some very rare cases with low bitrates.
ac3enc: differentiate between current block and reference block in bit_alloc()
ac3enc: simplify exponent_init() by calculating exponent_group_tab basedon exponent group sizes.
ac3enc: simplify stereo rematrixing decision options
Update URL to fate samples
AMV: disable DR1 and don't override EMU_EDGE
This works around a possibly exploitable crash.Appearently, vlc can be exploited with a malicous file. This should getreverted as soon as a proper fix is found.
Reported-at: Thu, 21 Apr 2011 14:38:25 +0000Reported-by: Dominic Chell <Dominic.Chell@ngssecure.com>...
lavf: inspect more frames for fps when container time base is coarse
As per issue2629, most 23.976fps matroska H.264 files are incorrectlydetected as 24fps, as the matroska timestamps usually have onlymillisecond precision.
Fix that by doubling the amount of timestamps inspected for frame rate...
Fix races in default av_log handler
Prevent competing threads from overwriting (shared) buffers.
Original patch by: Michael Niedermayer <email@example.com>
vorbis: Replace sized int_fast integer types with plain int/unsigned.
Remove disabled non-optimized code variants.
bswap.h: Remove disabled code.
Remove some disabled printf debug cruft.
Replace more disabled printf() calls by av_dlog().
tests: Remove disabled code.
Replace some commented-out debug printf() / av_log() messages with av_dlog().
vorbisdec: Replace some sizeof(type) by sizeof(*variable).
vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.
avio: Fix the deprecated fallback URL-prefixed open flags
While deprecated, they're totally useless as long as their valuesare different from the AVIO_FLAG values that are used internally.Currently, this leads to old libav applications still compilingcorrectly (since we haven't removed the fallback wrappers), but...
avoid duplicate -lm in .pc files
mpeg12: terminate mpeg2_video_profiles arrays
Make av_get_profile_name() return NULL if no profile is detected.
Fix trac issue #130, fix crash reading file tek3.m2v.(cherry picked from commit e5d80c7b2d893422e2e60a97e08bfc48ca1684e6)
network: Check POLLERR and POLLHUP in ff_network_wait_fd
Previously, the function would lead to an infinite wait (byreturning AVERROR) on sockets indicating an errorvia either of these poll flags.
Signed-off-by: Martin Storsjö <firstname.lastname@example.org>
mpegtsenc: make PMT PID really start on pmt_start_pid
nut format: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
rawvideo codec: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation
vorbisdec: Rename silly "class_" variable to plain "class".
simple_idct_alpha: Drop some useless casts.
Do not print the results of the conditional call to av_log_ask_for_sample()into the same line as the main output, separate the already long text.
ac3enc: remove check for mismatching channels and channel_layout
If AVCodecContext.channels is 0 and AVCodecContext.channel_layout isnon-zero, set channels based on channel_layout.
This allows the user to set only channel_layout and not channels.
If AVCodecContext.channel_layout and AVCodecContext.channels are bothnon-zero, check to make sure they do not contradict eachother.
Check AVCodec.supported_samplerates and AVCodec.channel_layouts inavcodec_open().
If the encoder has a channel_layouts list and AVCodecContext.channel_layoutis 0, then only print a warning and let the encoder decide how to handle it.
aacdec: remove sf_scale and sf_offset.
Instead, scalefactors are adjusted by the offset amount, removing the needfor sf_scale, and the MDCT scales are adjusted to compensate for the higherscalefactors. Floating-point output will be handled by modifying the MDCT...
aacdec: use a scale of 2 in the LTP MDCT rather than doubling the coefficienttable values from the spec.
Define POW_SF2_ZERO in aac.h and use for ff_aac_pow2sf_tabp offsets insteadof hardcoding 200 everywhere.
Large intensity stereo and PNS indices are legal. Clip them instead oferroring out. A magnitude of 100 corresponds to 2^25 so the will mostlikely result in clipped output anyway.
None of the conformance streams fall in the range that need to be clipped.
qpeg: use reget_buffer() in decode_frame()
Decoder relies on previous frame data, so use reget_buffer().
This also set frame->reference to 3, as the frame will be requestedunmodified later so it shouldn't be modified by the application.
Fix playback of file Clock.avi....
ultimotion: use reget_buffer() in ulti_decode_frame()
smacker: remove unnecessary call to avctx->release_buffer in decode_frame()
The release_buffer was cleaning the provided frame, thus causing thesuccessive call to avctx->reget_buffer() to allocate a new frame. Incase the returned frame was not the same one previously returned but a...
avparser: don't av_malloc(0).
ac3enc: correct the flipped sign in the ac3_fixed encoder
Eliminate pointless '#if 1' statements without matching '#else'.
Add AVX FFT implementation.
Signed-off-by: Reinhard Tartler <email@example.com>
Increase alignment of av_malloc() as needed by AVX ASM.
Update x86inc.asm from x264 to allow AVX emulation using SSE and MMX.
mjpeg: Detect overreads in mjpeg_decode_scan() and error out.
Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>Signed-off-by: Ronald S. Bultje <email@example.com>
documentation: extend documentation for ffmpeg -aspect option
APIChanges: update commit hashes for recent additions.
lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums
Also deprecate av_get_pict_type_char() in favor ofav_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...
aac: add headers needed for log2f()
lavc: remove FF_API_MB_Q cruft
lavc: remove FF_API_RATE_EMU cruft