ffmpeg.git
6 years agoswr: fix silence buffer for planar U8
Michael Niedermayer [Sun, 6 May 2012 22:05:19 +0000 (00:05 +0200)]
swr: fix silence buffer for planar U8

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix cpy() after the len was changed to be in samples.
Michael Niedermayer [Sun, 6 May 2012 22:04:44 +0000 (00:04 +0200)]
swr: fix cpy() after the len was changed to be in samples.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 6 May 2012 19:31:08 +0000 (21:31 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (28 commits)
  dfa: use more meaningful return codes
  eatgv: check vector_bits
  eatgv: check motion vectors
  Mark a number of variables only used in av_dlog() calls as av_unused.
  dvdec: drop const qualifier from variable to eliminate a warning
  avcodec: Improve comment for thread_safe_callbacks to avoid misinterpretation.
  tests/utils: don't ignore the return value of fwrite()
  lavfi/formats: use sizeof(var) instead of sizeof(type).
  lavfi: remove avfilter_default_config_input_link() declaration
  lavfi: always enable the scale filter and depend on sws.
  vf_split: support user-specifiable number of outputs.
  avconv: remove stray useless comment.
  mpegmux: add stuffing to avoid incomplete PCM frames
  rtsp: avoid const warnings from strtol() call
  avserver: check return value of ftruncate()
  lagarith: make offset array type unsigned
  dfa: add some checks to ensure that decoder won't write past frame end
  aacps: NEON optimisations
  aacps: align some arrays
  aacps: move some loops to function pointers
  ...

Conflicts:
configure
doc/filters.texi
libavcodec/dfa.c
libavcodec/eatgv.c
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/avfilter.h
libavfilter/formats.c
libavfilter/vf_split.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr-x86-simd: add ff_unpack_2ch_int16_to_int16/int32/float_a_ssse3
Michael Niedermayer [Sun, 6 May 2012 17:39:52 +0000 (19:39 +0200)]
swr-x86-simd: add ff_unpack_2ch_int16_to_int16/int32/float_a_ssse3

more than 10% faster (tested on sandybridge)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodfa: use more meaningful return codes
Kostya Shishkov [Sun, 6 May 2012 07:46:19 +0000 (09:46 +0200)]
dfa: use more meaningful return codes

6 years agoeatgv: check vector_bits
Michael Niedermayer [Sun, 15 Apr 2012 11:29:50 +0000 (13:29 +0200)]
eatgv: check vector_bits

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agoeatgv: check motion vectors
Kostya Shishkov [Sat, 5 May 2012 12:27:35 +0000 (14:27 +0200)]
eatgv: check motion vectors

6 years agoswr: audioconvert: consider mono to be planar
Michael Niedermayer [Sun, 6 May 2012 16:04:09 +0000 (18:04 +0200)]
swr: audioconvert: consider mono to be planar

This way it will be handled by the planar==planar SIMD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMark a number of variables only used in av_dlog() calls as av_unused.
Diego Biurrun [Thu, 19 Apr 2012 12:48:16 +0000 (14:48 +0200)]
Mark a number of variables only used in av_dlog() calls as av_unused.

This fixes a number of unused-but-set gcc warnings.

6 years agodvdec: drop const qualifier from variable to eliminate a warning
Diego Biurrun [Mon, 16 Apr 2012 09:38:02 +0000 (11:38 +0200)]
dvdec: drop const qualifier from variable to eliminate a warning

libavcodec/dvdec.c:344:12: warning: assignment discards ‘const’ qualifier from pointer target type

6 years agoavcodec: Improve comment for thread_safe_callbacks to avoid misinterpretation.
Robert Nagy [Sat, 14 Apr 2012 18:31:45 +0000 (20:31 +0200)]
avcodec: Improve comment for thread_safe_callbacks to avoid misinterpretation.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agotests/utils: don't ignore the return value of fwrite()
Sean McGovern [Thu, 26 Apr 2012 18:56:24 +0000 (14:56 -0400)]
tests/utils: don't ignore the return value of fwrite()

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoswr-x86-simd: stereo unpack S16/S32/FLT-> S16/S32/FLT SSE/SSE2 (16 new SIMD functions)
Michael Niedermayer [Sun, 6 May 2012 15:22:33 +0000 (17:22 +0200)]
swr-x86-simd: stereo unpack S16/S32/FLT-> S16/S32/FLT SSE/SSE2 (16 new SIMD functions)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr-x86-simd: create prototypes with macros, this is simpler.
Michael Niedermayer [Sun, 6 May 2012 13:22:42 +0000 (15:22 +0200)]
swr-x86-simd: create prototypes with macros, this is simpler.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr-x86-SIMD: 3 instructions less for stereo planar->packed s32/flt->s16
Michael Niedermayer [Sun, 6 May 2012 10:59:59 +0000 (12:59 +0200)]
swr-x86-SIMD: 3 instructions less for stereo planar->packed s32/flt->s16

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoCrystalHD: Improve detection of field pair -> two fields content.
Philip Langdale [Sat, 5 May 2012 16:58:39 +0000 (09:58 -0700)]
CrystalHD: Improve detection of field pair -> two fields content.

Istvan Sebok provided a sample where field pair -> two fields content
was being misdetected by the existing logic. I added an additional
test to check the input picture type as identified by our h.264
parser.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/formats: use sizeof(var) instead of sizeof(type).
Anton Khirnov [Fri, 4 May 2012 07:49:28 +0000 (09:49 +0200)]
lavfi/formats: use sizeof(var) instead of sizeof(type).

6 years agolavfi: remove avfilter_default_config_input_link() declaration
Stefano Sabatini [Sat, 6 Aug 2011 10:11:12 +0000 (12:11 +0200)]
lavfi: remove avfilter_default_config_input_link() declaration

The function is not implemented (and possibly useless).

6 years agolavfi: always enable the scale filter and depend on sws.
Anton Khirnov [Sat, 5 May 2012 08:22:55 +0000 (10:22 +0200)]
lavfi: always enable the scale filter and depend on sws.

The scale filter is used for internal colorspace conversions, so it must
always be present.

6 years agovf_split: support user-specifiable number of outputs.
Anton Khirnov [Fri, 27 Apr 2012 05:41:32 +0000 (07:41 +0200)]
vf_split: support user-specifiable number of outputs.

6 years agoavconv: remove stray useless comment.
Anton Khirnov [Sat, 5 May 2012 12:17:19 +0000 (14:17 +0200)]
avconv: remove stray useless comment.

6 years agovsrc_buffer: deprecate the header.
Nicolas George [Sat, 5 May 2012 07:54:41 +0000 (09:54 +0200)]
vsrc_buffer: deprecate the header.

6 years agovsrc_buffer: deprecate av_vsrc_buffer_add_video_buffer_ref.
Nicolas George [Sat, 5 May 2012 07:53:28 +0000 (09:53 +0200)]
vsrc_buffer: deprecate av_vsrc_buffer_add_video_buffer_ref.

6 years agosrc_buffer: update get_nb_failed_requests name.
Nicolas George [Sat, 5 May 2012 07:50:30 +0000 (09:50 +0200)]
src_buffer: update get_nb_failed_requests name.

Implement av_buffersrc_get_nb_failed_requests.
Deprecate av_vsrc_buffer_get_nb_failed_requests.

6 years agoasrc_abuffer: deprecate the header.
Nicolas George [Sat, 5 May 2012 07:45:02 +0000 (09:45 +0200)]
asrc_abuffer: deprecate the header.

6 years agoasrc_abuffer: deprecate av_asrc_buffer_* functions.
Nicolas George [Sat, 5 May 2012 07:40:27 +0000 (09:40 +0200)]
asrc_abuffer: deprecate av_asrc_buffer_* functions.

6 years agolavfi: install buffersrc.h.
Nicolas George [Sat, 5 May 2012 07:41:36 +0000 (09:41 +0200)]
lavfi: install buffersrc.h.

6 years agolavfi: remove av_buffersrc_buffer.
Nicolas George [Sat, 5 May 2012 07:26:52 +0000 (09:26 +0200)]
lavfi: remove av_buffersrc_buffer.

It is no longer used anywhere.

Furthermore, the header it was declared in was not installed,
so it can not be considered part of the public API.

6 years agobuffersrc: fix av_buffersrc_add_ref doxy.
Nicolas George [Sun, 6 May 2012 14:17:08 +0000 (16:17 +0200)]
buffersrc: fix av_buffersrc_add_ref doxy.

av_buffersrc_add_ref can handle audio too now.

6 years agoffmpeg: do not include vsrc_buffer.h.
Nicolas George [Sat, 5 May 2012 07:52:05 +0000 (09:52 +0200)]
ffmpeg: do not include vsrc_buffer.h.

6 years agoffmpeg: replace av_vsrc_buffer_add_frame by av_buffersrc_add_frame.
Nicolas George [Sat, 5 May 2012 07:33:55 +0000 (09:33 +0200)]
ffmpeg: replace av_vsrc_buffer_add_frame by av_buffersrc_add_frame.

6 years agoffmpeg: replace av_buffersrc_buffer with av_buffersrc_add_ref.
Nicolas George [Sat, 5 May 2012 07:22:24 +0000 (09:22 +0200)]
ffmpeg: replace av_buffersrc_buffer with av_buffersrc_add_ref.

6 years agompegmux: add stuffing to avoid incomplete PCM frames
Janne Grunau [Tue, 13 Mar 2012 17:12:06 +0000 (18:12 +0100)]
mpegmux: add stuffing to avoid incomplete PCM frames

Fixes https://bugzilla.libav.org/show_bug.cgi?id=244

6 years agortsp: avoid const warnings from strtol() call
Mans Rullgard [Wed, 25 Apr 2012 22:37:29 +0000 (23:37 +0100)]
rtsp: avoid const warnings from strtol() call

The strtol() interface makes it difficult to use with
const-qualified pointers.  With this change, although
the const is still lost, the compiler does not warn
about it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoavserver: check return value of ftruncate()
Mans Rullgard [Sat, 21 Apr 2012 16:01:35 +0000 (17:01 +0100)]
avserver: check return value of ftruncate()

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agooggparsevorbis.c: Check for OOM when using av_mallocz.
Carl Eugen Hoyos [Sun, 6 May 2012 10:00:19 +0000 (12:00 +0200)]
oggparsevorbis.c: Check for OOM when using av_mallocz.

6 years agolagarith: make offset array type unsigned
Kostya Shishkov [Sat, 5 May 2012 11:45:03 +0000 (13:45 +0200)]
lagarith: make offset array type unsigned

This is logical and also fixes checking for the fourth plane offset.

6 years agodfa: add some checks to ensure that decoder won't write past frame end
Kostya Shishkov [Thu, 3 May 2012 18:10:36 +0000 (20:10 +0200)]
dfa: add some checks to ensure that decoder won't write past frame end

6 years agoaacps: NEON optimisations
Mans Rullgard [Tue, 13 Mar 2012 13:20:29 +0000 (13:20 +0000)]
aacps: NEON optimisations

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoaacps: align some arrays
Mans Rullgard [Fri, 27 Jan 2012 01:24:55 +0000 (01:24 +0000)]
aacps: align some arrays

This is required for SIMD optimisations.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoaacps: move some loops to function pointers
Mans Rullgard [Fri, 27 Jan 2012 01:22:55 +0000 (01:22 +0000)]
aacps: move some loops to function pointers

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agortpdec_h264: Add missing newlines to av_log calls
Martin Storsjö [Sat, 5 May 2012 17:48:08 +0000 (20:48 +0300)]
rtpdec_h264: Add missing newlines to av_log calls

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Free old extradata before clearing the pointer
Martin Storsjö [Sat, 5 May 2012 13:55:20 +0000 (16:55 +0300)]
rtpdec_h264: Free old extradata before clearing the pointer

This avoids memory leaks if there actually was some extradata
set before.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 5 May 2012 18:10:45 +0000 (20:10 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  tests: Refactor rotozoom/videogen common code into a separate file.
  tests: Mark some file-internal symbols as static.
  build: Drop leftover .exp pattern from LIBSUFFIXES list.
  vsrc_buffer: return EAGAIN if no frame is available.
  WMAL: Shift output samples by the specified number of padding zeroes.
  WMAL: Restore removed code in mclms_predict()
  rtpdec_h264: Remove a useless ifdef
  rtpdec_h264: Remove outdated/useless/incorrect comments
  rtpdec_h264: Remove useless memory corruption checks
  rtpdec_h264: Return proper error codes
  rtpdec_h264: Check the available data length before reading
  rtpdec_h264: Add input size checks
  png: check bit depth for PAL8/Y400A pixel formats.
  ea: check chunk_size for validity.
  celp filters: Do not read earlier than the start of the 'out' vector.

Conflicts:
libavcodec/pngdec.c
libavfilter/src_buffer.c
tests/rotozoom.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: replace the remaining 2 audio convert SIMD macros by the new ones
Michael Niedermayer [Sat, 5 May 2012 17:59:57 +0000 (19:59 +0200)]
swr: replace the remaining 2 audio convert SIMD macros by the new ones

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix internal asm labels
Michael Niedermayer [Sat, 5 May 2012 17:43:11 +0000 (19:43 +0200)]
swr: fix internal asm labels

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix PACK_2CH register count
Michael Niedermayer [Sat, 5 May 2012 17:42:52 +0000 (19:42 +0200)]
swr: fix PACK_2CH register count

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: replace planar->planar/packed->packed FLT<->S16/S32 SIMD by new macros
Michael Niedermayer [Sat, 5 May 2012 17:41:39 +0000 (19:41 +0200)]
swr: replace planar->planar/packed->packed FLT<->S16/S32 SIMD by new macros

this simplifies the code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agortpdec_h264: Reorder code blocks
Martin Storsjö [Fri, 4 May 2012 21:38:05 +0000 (00:38 +0300)]
rtpdec_h264: Reorder code blocks

This removes one level of indentation.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Make start_sequence a static const array
Martin Storsjö [Fri, 4 May 2012 21:33:39 +0000 (00:33 +0300)]
rtpdec_h264: Make start_sequence a static const array

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Cleanup debug packet type counting
Martin Storsjö [Fri, 4 May 2012 21:28:25 +0000 (00:28 +0300)]
rtpdec_h264: Cleanup debug packet type counting

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Cosmetic cleanup
Martin Storsjö [Sat, 5 May 2012 14:42:15 +0000 (16:42 +0200)]
rtpdec_h264: Cosmetic cleanup

Add/fix spacing, split long lines, align assignments where suitable.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Clean up comments
Martin Storsjö [Fri, 4 May 2012 21:05:52 +0000 (00:05 +0300)]
rtpdec_h264: Clean up comments

Split long comments, move long comments at the end of lines to
separate lines above, fix vertical alignment, fix up comment style
(unify trailing dots - comments had a mix of 2, 3 or 4 dots, where
it would be just as good without them at all).

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Convert commented out code into setting an unused variable
Martin Storsjö [Fri, 4 May 2012 21:02:15 +0000 (00:02 +0300)]
rtpdec_h264: Convert commented out code into setting an unused variable

It is worth keeping instead of removing, in case reading this
bit becomes necessary at some later point.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoswr: implement stereo S16/S32/FLT->S16/S32/FLT planar->packed in SSE/SSE2
Michael Niedermayer [Sat, 5 May 2012 13:31:06 +0000 (15:31 +0200)]
swr: implement stereo S16/S32/FLT->S16/S32/FLT planar->packed in SSE/SSE2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: update calling code to support mixed packed planar SIMD
Michael Niedermayer [Sat, 5 May 2012 16:31:04 +0000 (18:31 +0200)]
swr: update calling code to support mixed packed planar SIMD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: change simd len argument to be in samples instead of dst bytes.
Michael Niedermayer [Sat, 5 May 2012 16:30:17 +0000 (18:30 +0200)]
swr: change simd len argument to be in samples instead of dst bytes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr-test: allow testing a specific subset of cases
Michael Niedermayer [Sat, 5 May 2012 16:22:48 +0000 (18:22 +0200)]
swr-test: allow testing a specific subset of cases

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotests: Refactor rotozoom/videogen common code into a separate file.
Diego Biurrun [Mon, 30 Apr 2012 14:44:31 +0000 (16:44 +0200)]
tests: Refactor rotozoom/videogen common code into a separate file.

6 years agotests: Mark some file-internal symbols as static.
Diego Biurrun [Mon, 30 Apr 2012 14:29:26 +0000 (16:29 +0200)]
tests: Mark some file-internal symbols as static.

6 years agobuild: Drop leftover .exp pattern from LIBSUFFIXES list.
Diego Biurrun [Mon, 30 Apr 2012 08:33:49 +0000 (10:33 +0200)]
build: Drop leftover .exp pattern from LIBSUFFIXES list.

6 years agoRemove unused variable from ffv1 decoder.
Carl Eugen Hoyos [Sat, 5 May 2012 12:54:57 +0000 (14:54 +0200)]
Remove unused variable from ffv1 decoder.

6 years agoSkip padding bytes after reading musepack8 header.
Carl Eugen Hoyos [Sat, 5 May 2012 12:46:38 +0000 (14:46 +0200)]
Skip padding bytes after reading musepack8 header.

Fixes ticket #1160.

6 years agoalsdec.c: Also test 0 when checking rice decoder values.
Carl Eugen Hoyos [Sat, 5 May 2012 11:19:35 +0000 (13:19 +0200)]
alsdec.c: Also test 0 when checking rice decoder values.

Suggested-by: Thilo Borgmann
6 years agoalsdec.c: Simplify error check before calling rice decoder.
Carl Eugen Hoyos [Sat, 5 May 2012 11:14:36 +0000 (13:14 +0200)]
alsdec.c: Simplify error check before calling rice decoder.

Reviewed-by: Thilo Borgmann
6 years agovsrc_buffer: return EAGAIN if no frame is available.
Nicolas George [Tue, 17 Apr 2012 16:31:25 +0000 (18:31 +0200)]
vsrc_buffer: return EAGAIN if no frame is available.

This is not an erroneous condition, do not print a warning.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agoWMAL: Shift output samples by the specified number of padding zeroes.
Jakub Stachowski [Thu, 3 May 2012 17:36:48 +0000 (19:36 +0200)]
WMAL: Shift output samples by the specified number of padding zeroes.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agoWMAL: Restore removed code in mclms_predict()
Mashiat Sarker Shakkhar [Thu, 3 May 2012 17:14:47 +0000 (10:14 -0700)]
WMAL: Restore removed code in mclms_predict()

Based on observations made by Jakub Stachowski <qbast@go2.pl>

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
6 years agooggvorbis: fix the first 2 packets timestamps matching issue
Michael Niedermayer [Sat, 5 May 2012 08:48:08 +0000 (10:48 +0200)]
oggvorbis: fix the first 2 packets timestamps matching issue

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopng_parser: try to fix big endian
Michael Niedermayer [Sat, 5 May 2012 00:12:40 +0000 (02:12 +0200)]
png_parser: try to fix big endian

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agortpdec_h264: Remove a useless ifdef
Martin Storsjö [Fri, 4 May 2012 20:53:10 +0000 (23:53 +0300)]
rtpdec_h264: Remove a useless ifdef

assert is a no-op if DEBUG isn't defined.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Remove outdated/useless/incorrect comments
Martin Storsjö [Fri, 4 May 2012 20:46:18 +0000 (23:46 +0300)]
rtpdec_h264: Remove outdated/useless/incorrect comments

RTCP is handled elsewhere, not in the depacketizer for an
individual format.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Remove useless memory corruption checks
Martin Storsjö [Fri, 4 May 2012 20:49:45 +0000 (23:49 +0300)]
rtpdec_h264: Remove useless memory corruption checks

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Return proper error codes
Martin Storsjö [Fri, 4 May 2012 21:29:15 +0000 (00:29 +0300)]
rtpdec_h264: Return proper error codes

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Check the available data length before reading
Martin Storsjö [Fri, 4 May 2012 19:45:11 +0000 (22:45 +0300)]
rtpdec_h264: Check the available data length before reading

This makes sure the length is checked for STAP-A type packets.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_h264: Add input size checks
Ivan Kovtunov [Fri, 4 May 2012 19:31:46 +0000 (22:31 +0300)]
rtpdec_h264: Add input size checks

This fixes crashes if given too short data packets.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agovorbis_parser: fix blocksize
Michael Niedermayer [Fri, 4 May 2012 23:51:33 +0000 (01:51 +0200)]
vorbis_parser: fix blocksize

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooggvorbis: move handling of first packets ts from parser to muxer.
Michael Niedermayer [Fri, 4 May 2012 23:41:54 +0000 (01:41 +0200)]
oggvorbis: move handling of first packets ts from parser to muxer.

The parser does not have enough knowledge it seems to do it
correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopng: check bit depth for PAL8/Y400A pixel formats.
Ronald S. Bultje [Wed, 2 May 2012 17:58:55 +0000 (10:58 -0700)]
png: check bit depth for PAL8/Y400A pixel formats.

Wrong bit depth can lead to invalid rowsize values, which crashes the
decoder further down.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agoea: check chunk_size for validity.
Ronald S. Bultje [Fri, 4 May 2012 23:06:26 +0000 (16:06 -0700)]
ea: check chunk_size for validity.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 4 May 2012 22:44:48 +0000 (00:44 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: add POWER[5-7] support
  arm: intreadwrite: revert 16-bit load asm to old version for gcc < 4.6
  vqavideo: return error if image size is not a multiple of block size
  cosmetics: indentation
  avformat: only fill-in interpolated timestamps if duration is non-zero
  avformat: remove a workaround for broken timestamps

Conflicts:
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooggtheora: Port changes from oggvorbis timestamp handling.
Michael Niedermayer [Fri, 4 May 2012 20:54:35 +0000 (22:54 +0200)]
oggtheora: Port changes from oggvorbis timestamp handling.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooggvorbisdec: Apply timestamp calculation always when timestamps arent known.
Michael Niedermayer [Fri, 4 May 2012 20:45:57 +0000 (22:45 +0200)]
oggvorbisdec: Apply timestamp calculation always when timestamps arent known.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooggvorbisdec: redesign special handling of first frames timestamp.
Michael Niedermayer [Fri, 4 May 2012 20:37:51 +0000 (22:37 +0200)]
oggvorbisdec: redesign special handling of first frames timestamp.

This also will make it possible to use the code for cases other than the start of a stream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoexamples/filtering_audio: use av_buffersrc_add_frame.
Nicolas George [Sat, 28 Apr 2012 13:03:08 +0000 (15:03 +0200)]
examples/filtering_audio: use av_buffersrc_add_frame.

6 years agosrc_buffer: implement av_buffersrc_add_frame.
Nicolas George [Sat, 28 Apr 2012 13:01:41 +0000 (15:01 +0200)]
src_buffer: implement av_buffersrc_add_frame.

It supersedes av_vsrc_buffer_add_frame and handles
both audio and video.

6 years agosrc_buffer: implement audio buffer copy.
Nicolas George [Sat, 28 Apr 2012 12:54:04 +0000 (14:54 +0200)]
src_buffer: implement audio buffer copy.

6 years agolavfi/avcodec: implement audio copy_frame_prop.
Nicolas George [Sat, 28 Apr 2012 12:26:46 +0000 (14:26 +0200)]
lavfi/avcodec: implement audio copy_frame_prop.

6 years agolavfi: implement avfilter_get_audio_buffer_ref_from_frame.
Nicolas George [Sat, 28 Apr 2012 11:05:09 +0000 (13:05 +0200)]
lavfi: implement avfilter_get_audio_buffer_ref_from_frame.

6 years agocelp filters: Do not read earlier than the start of the 'out' vector.
Alex Converse [Fri, 4 May 2012 17:27:03 +0000 (10:27 -0700)]
celp filters: Do not read earlier than the start of the 'out' vector.

CC: libav-stable@libav.org
6 years agoffmpeg: fix indent in term_init().
Clément Bœsch [Fri, 4 May 2012 17:21:31 +0000 (19:21 +0200)]
ffmpeg: fix indent in term_init().

6 years agoFix a few @file doxy inconsistencies.
Clément Bœsch [Fri, 4 May 2012 16:50:11 +0000 (18:50 +0200)]
Fix a few @file doxy inconsistencies.

6 years agoffmpeg: stronger ffpresets parsing.
Clément Bœsch [Thu, 3 May 2012 21:07:24 +0000 (23:07 +0200)]
ffmpeg: stronger ffpresets parsing.

This fixes at least issues with empty lines, and also allows CRLF lines
(in case a user makes its own preset on a MS plateform).

6 years agopresets: specify the codecs.
Clément Bœsch [Thu, 3 May 2012 20:01:32 +0000 (22:01 +0200)]
presets: specify the codecs.

This allows the following usages:
FFMPEG_DATADIR=presets ./ffmpeg -f lavfi -i testsrc=d=5 -vcodec libx264 -vpre ipod640 -f null -
FFMPEG_DATADIR=presets ./ffmpeg -f lavfi -i testsrc=d=5 -vpre libx264-ipod640 -f null -

The second example was broken even if documented.

6 years agoRemove old ffpresets.
Clément Bœsch [Mon, 26 Mar 2012 21:12:12 +0000 (23:12 +0200)]
Remove old ffpresets.

They are now replaced with presets/ directory. WIN32 still seems to use
a ffpresets/ directory, but it doesn't look like to be deployed at
install time.

6 years agopng_parser
Peter Holik [Thu, 3 May 2012 14:16:03 +0000 (00:16 +1000)]
png_parser

This adds support for png image2pipe streaming

Update to latest git by: Eugene Ware <eugene@noblesamurai.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooggvorbis: Try to fix pts off by 1 issue.
Michael Niedermayer [Fri, 4 May 2012 13:44:11 +0000 (15:44 +0200)]
oggvorbis: Try to fix pts off by 1 issue.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoconfigure: add POWER[5-7] support
Sean McGovern [Fri, 27 Apr 2012 13:47:58 +0000 (14:47 +0100)]
configure: add POWER[5-7] support

Also merge POWER3 and POWER4 configuration together with the additions.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agofate: update ogg seektest after all the bug fixes
Michael Niedermayer [Fri, 4 May 2012 12:38:46 +0000 (14:38 +0200)]
fate: update ogg seektest after all the bug fixes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agooggtheora: Fix initial pts
Michael Niedermayer [Fri, 4 May 2012 12:36:17 +0000 (14:36 +0200)]
oggtheora: Fix initial pts

code based on the solution in vorbis

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>