swscale: prevent invalid writes in packed_16bpc_bswap
Writes past the end of the destination buffer were occuring when its stride was smaller than the stride of the source. Fixes Bug #183.
Merge remote-tracking branch 'qatar/master'
* qatar/master: fate: split off vqf/twinvq FATE tests into their own file fate: split off mpc FATE tests into their own file fate: split off libavcodec FATE tests into their own file fate: split off Microsoft codec FATE tests into their own file fate: group all VP* codec FATE tests together in one file swscale: prevent invalid writes in packed_16bpc_bswap Merged-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: add remaining hunks to enable dr1 support
Author: Anton Khirnov Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: disable dr1 in case of resolution changes, as this does not w…
…ork currently. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg: Check that frames are user type before treating them as such
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegvideo: fix visualization buffer size.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
x86: Fix constraints for decode_significance*_x86
Originally, prior to 8742a4f, the caller code was compiled within this condition: ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE && !defined(BROKEN_RELOCATIONS) Since HAVE_7REGS is defined as (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE)) the subcondition HAVE_7REGS && HAVE_EBX_AVAILABLE is equal to HAVE_7REGS (for 32 bit at least). The correct simplification of the original condition thus is HAVE_7REGS, not HAVE_EBX_AVAILABLE. This fixes compilation in some cases where HAVE_EBP_AVAILABLE = 0 and HAVE_EBX_AVAILABLE = 1. Signed-off-by: Martin Storsjö <martin@martin.st>
lavfi: don't try to indent words in trace messages
The traces end up not indented and ugly anyway, but with the additional spaces are much more painful to grep/parse.
lavfi: fix avfilter_default_get_audio_buffer() after changes in av_sa…
…mples_alloc() av_samples_alloc() behavior changed in bbb46f3, resulting in random data filling the data[] and linesize[] arrays of the returned AVFilterBufferRef, which was resulting in wrong behavior in case of code checking on data[i] nullity. In particular fixes crash in avfilter_filter_samples(): for (i = 0; samplesref->data[i]; i++) memcpy(link->cur_buf->data[i], samplesref->data[i], samplesref->linesize[0]); and correctly fills the linesize[] array for planar data.
lavfi: add missing check in avfilter_filter_samples()
Avoid out-of-buffer data access when nb_channels is 8.
v4l2: remove unneded linux specific asm/types.h include
threads: test for sys/param.h and include it for sysctl on OpenBSD
doxygen: remove unreplaced variables from custom header and footer
Fix some 1bit png samples, they can be palettised.
Fixes ticket #767.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Makefile: fix path to ffprobe.xsd
Idea-by: beastd Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fixed crash in palette handling when converting certain .png images t…
…o .pcx or .bmp. The existing code expected a palette buffer holding 256 uint32_t's allocated in the data[1] field of the AVFrame structure, but data[1] was NULL. The bug is fixed by using a fixed local array (palette256) to hold the palette instead. This solves http://ffmpeg.org/trac/ffmpeg/ticket/833 Signed-off-by: Frank Vernaillen <fr_ve@hotmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'
* qatar/master: mpegvideo_enc: K&R cosmetics doxygen: remove unreplaced variables from custom header and footer threads: test for sys/param.h and include it for sysctl on OpenBSD v4l2: remove unneded linux specific asm/types.h include x86: Fix constraints for decode_significance*_x86 Conflicts: libavcodec/mpegvideo_enc.c libavdevice/v4l2.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Fix a typo that broke writing (and reading) PAM files.
Reported and reviewed by Derek Buitenhuis.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
v410dec: Check for sufficient input data.
Fixes crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vcr1dec: Check that there is sufficient input data.
Fixes crash. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
indeo5: fix null pointer crash with ref_mb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
indeo5: Fix crash due to partially initialized gop vars.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
mpegts: properly output large audio packets
Do not assume the audio packets being always smaller than DEFAULT_PES_PAYLOAD_SIZE. Signed-off-by: Jindřich Makovička <makovick@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
mpegts: adjustable minimum PES payload
With the current default PES packet size, and very small audio bitrates, audio packet duration gets too long. For players, which wait for a whole audio packet (or more) it takes a very long time to start playing sound. For 24kbps audio, one PES packet is about 1 second long. On Motorola STBs, we observe about 3 second delay before the playback starts with the default setting. Signed-off-by: Anton Khirnov <anton@khirnov.net>
fate: Add v210 codec regression tests
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
indeo5: fix division by 0 in ff_ivi_init_tiles()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
v410dec: Check for sufficient input data. Fixes crash
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
cljrdec: improve scaling somewhat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'
* qatar/master: v410dec: Check for sufficient input data. Fixes crash fate: Add v210 codec regression tests mpegts: adjustable minimum PES payload mpegts: properly output large audio packets avformat: Add SMJPEG demuxer. Indeo 4 decoder Conflicts: doc/general.texi libavcodec/v410dec.c libavcodec/version.h libavformat/mpegtsenc.c libavformat/smjpeg.c libavformat/version.h tests/codec-regression.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
lagarith: add decode support for arith rgb24 mode
Signed-off-by: Anton Khirnov <anton@khirnov.net>
applehttp: Use the last segment duration as reload interval
According to draft-pantos-http-live-streaming-07, 6.3.4, the duration of the last media segment in the playlist should be used as initial minimum reload delay. Signed-off-by: Martin Storsjö <martin@martin.st>