Aneesh Dogra [Sat, 31 Dec 2011 12:30:22 +0000 (18:00 +0530)]
bgmc: K&R cleanup
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Reimar Döffinger [Wed, 28 Dec 2011 05:50:32 +0000 (00:50 -0500)]
rawdec: Set start_time to 0 for raw audio files.
None of the raw audio files have timestamps, thus setting
start_time to 0 should be reasonable.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Carl Eugen Hoyos [Wed, 28 Dec 2011 05:50:31 +0000 (00:50 -0500)]
Detect 'yuv2' as rawvideo also in avi.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Stefano Sabatini [Wed, 28 Dec 2011 05:50:28 +0000 (00:50 -0500)]
rawdec: propagate pict_type information to the output frame
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Piotr Bandurski [Wed, 28 Dec 2011 05:50:25 +0000 (00:50 -0500)]
rawdec: Support more QT 1bpp rawvideo files.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Janne Grunau [Sun, 1 Jan 2012 16:56:28 +0000 (17:56 +0100)]
avconv: free bitstream filters
Janne Grunau [Sun, 1 Jan 2012 16:35:16 +0000 (17:35 +0100)]
threads: limit the number of automatic threads to MAX_AUTO_THREADS
The extra thread added in {frame_}*thread_init was not taken into
account. Explicitly sets thread_count to 1 if only one CPU core was
detected. Also fixes two typos in comments.
Aneesh Dogra [Sun, 1 Jan 2012 12:21:26 +0000 (17:51 +0530)]
avplay: K&R cleanup
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Janne Grunau [Sun, 1 Jan 2012 15:32:25 +0000 (16:32 +0100)]
fate: use rgb24 as output format for dfa tests
Palette is as supposed in native endianness. Converting the pal8 output
to rgb24 is thus necessary for identical CRCs on big and little endian
systems.
Janne Grunau [Sun, 1 Jan 2012 13:17:32 +0000 (14:17 +0100)]
threads: set thread_count to 1 when thread support is disabled
Janne Grunau [Sun, 1 Jan 2012 13:21:50 +0000 (14:21 +0100)]
threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264
Some external codecs have their own code to determine the best number
of threads. This number is not necessary the number of cpu cores.
Thread_count will be only 0 if the codec has CODEC_CAP_AUTO_THREADS.
Oana Stratulat [Thu, 29 Dec 2011 20:47:59 +0000 (22:47 +0200)]
FATE: add tests for dfa
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Ronald S. Bultje [Fri, 30 Dec 2011 21:08:21 +0000 (13:08 -0800)]
mpegaudiodec: fix seeking.
The safe bitstream reader does not allow using skip_bits_long() to seek to a
point before the start of the buffer, which was needed by the mp3 decoder.
This change instead calculates the start point of the first valid granule and
skips to that position.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Justin Ruggles [Sat, 31 Dec 2011 18:36:48 +0000 (13:36 -0500)]
mpegaudiodec: fix compilation when testing the unchecked bitstream reader
Janne Grunau [Fri, 23 Dec 2011 23:27:12 +0000 (00:27 +0100)]
threads: add sysconf based number of CPUs detection
Can act as fallback and should work on a couple of Unix systems.
Janne Grunau [Fri, 23 Dec 2011 23:04:16 +0000 (00:04 +0100)]
threads: always include necessary headers for number of CPUs detection
Since the conditions for the actual usage are more specific a less
preferred method can be used. This would cause compilation errors
because necessary headers are not included.
Janne Grunau [Sun, 25 Dec 2011 10:45:05 +0000 (11:45 +0100)]
threads: default to automatic thread count detection
Janne Grunau [Sat, 31 Dec 2011 16:31:02 +0000 (17:31 +0100)]
Changelog: restore version <next> header
Indeo 4 decoder and SMJPEG demuxer are not included in 0.8_beta1. Move
them to version <next>.
Shitiz Garg [Fri, 30 Dec 2011 22:18:53 +0000 (03:48 +0530)]
cook: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Tue, 27 Dec 2011 16:11:15 +0000 (17:11 +0100)]
fate: whitespace cosmetics
Diego Biurrun [Tue, 27 Dec 2011 16:00:18 +0000 (17:00 +0100)]
fate: split off video codec FATE tests into their own file
Diego Biurrun [Tue, 27 Dec 2011 15:48:56 +0000 (16:48 +0100)]
fate: split off audio codec FATE tests into their own file
Diego Biurrun [Tue, 27 Dec 2011 13:57:48 +0000 (14:57 +0100)]
fate: split off Electronic Arts codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 15:27:12 +0000 (16:27 +0100)]
fate: split off QuickTime codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 14:07:55 +0000 (15:07 +0100)]
fate: split off voice codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 20:47:23 +0000 (21:47 +0100)]
fate: split off demuxer FATE tests into their own file
Diego Biurrun [Thu, 29 Dec 2011 21:23:16 +0000 (22:23 +0100)]
cosmetics: Drop unnecessary parentheses around return values.
Diego Biurrun [Fri, 30 Dec 2011 17:43:26 +0000 (18:43 +0100)]
fate: drop pointless _audio and _video suffixes from xan tests
Diego Biurrun [Fri, 30 Dec 2011 15:54:52 +0000 (16:54 +0100)]
qt-faststart: K&R reformatting; fix comment typos
Mike Melanson [Fri, 30 Dec 2011 19:03:37 +0000 (11:03 -0800)]
FATE: Add test for H.264 MP4->annex.B bitstream filter.
This test uses an existing FATE sample (h264/interlaced_crop.mp4).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diego Biurrun [Thu, 29 Dec 2011 13:03:03 +0000 (14:03 +0100)]
fate: split off DPCM codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 21:10:36 +0000 (22:10 +0100)]
fate: split off PCM codec FATE tests into their own file
Diego Biurrun [Thu, 29 Dec 2011 20:37:05 +0000 (21:37 +0100)]
libvorbis: K&R reformatting cosmetics
Aneesh Dogra [Thu, 29 Dec 2011 21:19:55 +0000 (02:49 +0530)]
libmp3lame: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Aneesh Dogra [Thu, 29 Dec 2011 18:58:12 +0000 (00:28 +0530)]
fate: Add a video test for xxan decoder
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Aneesh Dogra [Thu, 29 Dec 2011 18:53:54 +0000 (00:23 +0530)]
mpegvideo_enc: K&R cosmetics (line 1000-2000).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Aneesh Dogra [Thu, 29 Dec 2011 20:28:29 +0000 (01:58 +0530)]
avconv: K&R cosmetics
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Martin Storsjö [Thu, 29 Dec 2011 16:43:30 +0000 (18:43 +0200)]
qt-faststart: Fix up indentation
This restores indentation after
65b875d8fcc.
Signed-off-by: Martin Storsjö <martin@martin.st>
Kostya Shishkov [Thu, 29 Dec 2011 16:25:26 +0000 (17:25 +0100)]
indeo4: remove two unused variables
Luca Barbato [Tue, 27 Dec 2011 03:51:39 +0000 (04:51 +0100)]
doxygen: cleanup style to support older doxy
Doxygen 1.7.5.1 had been used as reference while certain distributions
provide older and not fully compatible versions.
Aneesh Dogra [Thu, 29 Dec 2011 14:29:15 +0000 (15:29 +0100)]
fate: add more tests for VC-1 decoder
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Andrey Utkin [Wed, 28 Dec 2011 14:55:46 +0000 (16:55 +0200)]
applehttpproto: Apply the same reload interval changes as for the demuxer
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Tue, 27 Dec 2011 11:30:55 +0000 (13:30 +0200)]
applehttp: Use half the target duration as interval if the playlist didn't update
This is mandated in draft-pantos-http-live-streaming-07, section
6.3.4.
Signed-off-by: Martin Storsjö <martin@martin.st>
Andrey Utkin [Mon, 26 Dec 2011 19:25:52 +0000 (21:25 +0200)]
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>
Thad Ward [Wed, 28 Dec 2011 05:45:55 +0000 (23:45 -0600)]
lagarith: add decode support for arith rgb24 mode
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Michael Niedermayer [Wed, 28 Dec 2011 20:04:44 +0000 (15:04 -0500)]
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>
Reimar Döffinger [Wed, 28 Dec 2011 01:43:16 +0000 (20:43 -0500)]
fate: Add v210 codec regression tests
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Jindřich Makovička [Mon, 19 Dec 2011 19:15:21 +0000 (20:15 +0100)]
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>
Jindřich Makovička [Mon, 19 Dec 2011 19:03:24 +0000 (20:03 +0100)]
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>
Paul B Mahol [Sat, 24 Dec 2011 01:57:34 +0000 (01:57 +0000)]
avformat: Add SMJPEG demuxer.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Kostya Shishkov [Tue, 6 Dec 2011 13:50:32 +0000 (14:50 +0100)]
Indeo 4 decoder
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Aneesh Dogra [Tue, 27 Dec 2011 06:08:07 +0000 (11:38 +0530)]
mpegvideo_enc: K&R cosmetics
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Janne Grunau [Tue, 27 Dec 2011 13:33:58 +0000 (14:33 +0100)]
doxygen: remove unreplaced variables from custom header and footer
Janne Grunau [Fri, 23 Dec 2011 23:23:55 +0000 (00:23 +0100)]
threads: test for sys/param.h and include it for sysctl on OpenBSD
Janne Grunau [Mon, 26 Dec 2011 23:14:41 +0000 (00:14 +0100)]
v4l2: remove unneded linux specific asm/types.h include
Martin Storsjö [Mon, 26 Dec 2011 19:47:20 +0000 (21:47 +0200)]
x86: Fix constraints for decode_significance*_x86
Originally, prior to
8742a4ff8, 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>
Diego Biurrun [Wed, 14 Dec 2011 22:19:03 +0000 (23:19 +0100)]
fate: split off vqf/twinvq FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 22:08:05 +0000 (23:08 +0100)]
fate: split off mpc FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 22:03:37 +0000 (23:03 +0100)]
fate: split off libavcodec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 21:41:26 +0000 (22:41 +0100)]
fate: split off Microsoft codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 21:22:33 +0000 (22:22 +0100)]
fate: group all VP* codec FATE tests together in one file
Janne Grunau [Mon, 26 Dec 2011 12:38:39 +0000 (13:38 +0100)]
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.
Anton Khirnov [Sun, 25 Dec 2011 18:35:19 +0000 (19:35 +0100)]
avs: call release_buffer() at the end.
Fixes a memleak.
Anton Khirnov [Sun, 25 Dec 2011 17:24:14 +0000 (18:24 +0100)]
Add minor bumps and APIchanges entries for lavc/lavfi changes.
Konstantin Todorov [Sun, 25 Dec 2011 17:58:01 +0000 (09:58 -0800)]
mpegvideo.c: K&R formatting and cosmetics.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Anton Khirnov [Wed, 21 Dec 2011 20:04:05 +0000 (21:04 +0100)]
avconv: avoid memcpy in vsrc_buffer when possible.
Decoding Sintel.2010.1080p.mkv with 4 threads on an i7 2600K goes from
260s to 244s.
Anton Khirnov [Mon, 19 Dec 2011 14:44:58 +0000 (15:44 +0100)]
avconv: implement get_buffer()/release_buffer().
This will allow memcpy-free passing frames to lavfi.
Anton Khirnov [Wed, 21 Dec 2011 19:39:18 +0000 (20:39 +0100)]
lavfi: add a new function av_buffersrc_buffer().
It can be used to directly pass a AVFilterBufferRef to lavfi, avoiding a
memcpy.
Stefano Sabatini [Sun, 1 May 2011 12:47:05 +0000 (14:47 +0200)]
lavfi: add avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
Stefano Sabatini [Sun, 1 May 2011 12:10:20 +0000 (14:10 +0200)]
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.
Stefano Sabatini [Sun, 1 May 2011 12:02:08 +0000 (14:02 +0200)]
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.
Stefano Sabatini [Fri, 29 Apr 2011 11:04:47 +0000 (13:04 +0200)]
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.
Gautam Gupta [Sun, 11 Dec 2011 18:02:17 +0000 (19:02 +0100)]
doxy: add website-alike style to the html output
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Anton Khirnov [Sun, 25 Dec 2011 12:48:06 +0000 (13:48 +0100)]
FAQ: add an entry for common error when using -profile
Reinhard Tartler [Sun, 4 Dec 2011 09:10:33 +0000 (10:10 +0100)]
vp3dec: Check coefficient index in vp3_dequant()
Based on a patch by Michael Niedermayer <michaelni@gmx.at>
Fixes NGS00145, CVE-2011-4352
Found-by: Phillip Langlois
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Michael Niedermayer [Fri, 18 Nov 2011 18:10:21 +0000 (19:10 +0100)]
svq1dec: call avcodec_set_dimensions() after dimensions changed.
Fixes NGS00148, CVE-2011-4579
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Reinhard Tartler [Sun, 6 Nov 2011 10:12:04 +0000 (11:12 +0100)]
Prepare for 0.8_beta1 snapshot release
Janne Grunau [Fri, 23 Dec 2011 10:10:37 +0000 (11:10 +0100)]
threads: check defines before using them in automatic thread detection
Janne Grunau [Fri, 23 Dec 2011 09:14:15 +0000 (10:14 +0100)]
pthread: include sys/types.h before sys/sysctl.h
Fixes compilation on FreeBSD with clang 3.
Anton Khirnov [Thu, 22 Dec 2011 14:40:26 +0000 (15:40 +0100)]
4xm: remove unused variables.
Alexander Strange [Mon, 12 Dec 2011 23:13:39 +0000 (18:13 -0500)]
h264: Fix a possible overread in decode_nal_units()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Anton Khirnov [Thu, 22 Dec 2011 16:32:29 +0000 (17:32 +0100)]
allfilters: fix type of avfilter_vsrc_buffer.
Sergey Radionov [Fri, 23 Dec 2011 03:37:48 +0000 (10:37 +0700)]
w32thread: call ResetEvent() in pthread_cond_broadcast().
Also add "volatile" to broadcast flag (since it is used from
multiple threads).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diego Biurrun [Thu, 22 Dec 2011 20:10:38 +0000 (21:10 +0100)]
build: fix standalone compilation of OMA muxer
The muxer depends on the id3v2 writing code, so link against it.
Diego Biurrun [Thu, 22 Dec 2011 20:09:23 +0000 (21:09 +0100)]
build: fix standalone compilation of Microsoft XMV demuxer
The demuxer depends on the RIFF codec tags code, so link against it.
Diego Biurrun [Thu, 22 Dec 2011 20:05:26 +0000 (21:05 +0100)]
build: fix standalone compilation of Core Audio Format demuxer
The demuxer depends on code from mov.c, which in turn depends on
code from mov_chan.c, so link against it.
Gaurav Narula [Mon, 12 Dec 2011 14:54:54 +0000 (20:24 +0530)]
kvmc: fix invalid reads
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Shitiz Garg [Wed, 14 Dec 2011 12:59:21 +0000 (18:29 +0530)]
4xm: Add a check in decode_i_frame to prevent buffer overreads
Fixes bugzilla #135
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Paul B Mahol [Wed, 21 Dec 2011 19:27:53 +0000 (19:27 +0000)]
adpcm: fix IMA SMJPEG decoding
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Janne Grunau [Wed, 21 Dec 2011 00:37:44 +0000 (01:37 +0100)]
options: set minimum for "threads" to zero
A negative number of threads does not make sense and 0 is used for
autodetection. Adds a symbolic name for autodetection.
Janne Grunau [Thu, 22 Dec 2011 20:10:07 +0000 (21:10 +0100)]
bsd: use number of logical CPUs as automatic thread count
Janne Grunau [Wed, 21 Dec 2011 00:26:19 +0000 (01:26 +0100)]
windows: use number of CPUs as automatic thread count
Janne Grunau [Wed, 21 Dec 2011 00:18:01 +0000 (01:18 +0100)]
linux: use number of CPUs as automatic thread count
Use sched_getaffinity to determine the number of logical CPUs.
Limits the number of threads to 16 since slice threading of H.264
seems to be buggy with more than 16 threads.
Janne Grunau [Wed, 21 Dec 2011 12:07:54 +0000 (13:07 +0100)]
pthreads: reset active_thread_type when slice thread_init returrns early
Paul B. Mahol [Wed, 21 Dec 2011 00:19:12 +0000 (00:19 +0000)]
v410dec: include correct headers
This file does not use anything from get_bits.h but needs
intreadwrite.h.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diego Biurrun [Thu, 22 Dec 2011 15:33:31 +0000 (16:33 +0100)]
Drop ALT_ prefix from BITSTREAM_READER_LE name.
The prefix is a historic remnant that probably meant "alternative".
Now that the A32 bitstream reader has been dropped it makes no sense anymore.
Anton Khirnov [Wed, 21 Dec 2011 19:47:52 +0000 (20:47 +0100)]
lavfi: always build vsrc_buffer.
It's a part of public API.
Justin Ruggles [Wed, 21 Dec 2011 21:09:11 +0000 (16:09 -0500)]
ra144enc: zero the reflection coeffs if the filter is unstable
fixes use of uninitialized values if the filter is still unstable after using
the previous frame lpc coefficients.
Anton Khirnov [Wed, 21 Dec 2011 05:41:57 +0000 (06:41 +0100)]
sws: readd PAL8 to isPacked()
Fixes PAL8 to YUV conversion.
Alex Converse [Wed, 14 Dec 2011 02:49:06 +0000 (18:49 -0800)]
mov: Don't stick the QuickTime field ordering atom in extradata.
The 'fiel' atoms can be found in H.264 tracks clobbering the extradata.
MJPEG supports non field based extradata, and this data should be
preserved when copying.