ffmpeg.git
7 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.

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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.

7 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.

7 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.

7 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.

7 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.

7 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
7 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
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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
7 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
7 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>
7 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>
7 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>
7 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>
7 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.

7 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.

7 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.

7 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.

7 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.

7 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
7 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().

7 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.

7 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).

7 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.

7 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.

7 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>
7 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>
7 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>
7 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>
7 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>
7 years agoseek-test: support printing multiple packets
Michael Niedermayer [Fri, 4 May 2012 12:27:44 +0000 (14:27 +0200)]
seek-test: support printing multiple packets

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: fix off by one error on pos_limit
Michael Niedermayer [Fri, 4 May 2012 11:59:14 +0000 (13:59 +0200)]
oggdec: fix off by one error on pos_limit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: print error on failure to create streams
Michael Niedermayer [Fri, 4 May 2012 11:53:57 +0000 (13:53 +0200)]
oggdec: print error on failure to create streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: print error on changing streams when its unsupported.
Michael Niedermayer [Fri, 4 May 2012 11:53:34 +0000 (13:53 +0200)]
oggdec: print error on changing streams when its unsupported.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: print error on unsupported versions
Michael Niedermayer [Fri, 4 May 2012 11:48:58 +0000 (13:48 +0200)]
oggdec: print error on unsupported versions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: reset lastpts so that justins vorbis duration correction is not skiped
Michael Niedermayer [Fri, 4 May 2012 11:45:51 +0000 (13:45 +0200)]
oggdec: reset lastpts so that justins vorbis duration correction is not skiped

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: pass avformat context to ogg_reset()
Michael Niedermayer [Fri, 4 May 2012 11:44:28 +0000 (13:44 +0200)]
oggdec: pass avformat context to ogg_reset()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoseek-test: support manually forcing a seek to a specific position
Michael Niedermayer [Fri, 4 May 2012 11:42:45 +0000 (13:42 +0200)]
seek-test: support manually forcing a seek to a specific position

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agozerocodec: check if there is previous frame
Paul B Mahol [Fri, 4 May 2012 10:24:39 +0000 (10:24 +0000)]
zerocodec: check if there is previous frame

Fixes crash in bug #1219.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoshorten: unsigned 8bit support
Paul B Mahol [Thu, 3 May 2012 10:29:21 +0000 (10:29 +0000)]
shorten: unsigned 8bit support

7 years agoarm: intreadwrite: revert 16-bit load asm to old version for gcc < 4.6
Mans Rullgard [Thu, 3 May 2012 18:14:16 +0000 (19:14 +0100)]
arm: intreadwrite: revert 16-bit load asm to old version for gcc < 4.6

Commit adebad0 "arm: intreadwrite: fix inline asm constraints for gcc
4.6 and later" caused some older gcc versions to miscompile code.
This reverts to the old version of the code for these compilers.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoMerge https://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder
Michael Niedermayer [Thu, 3 May 2012 20:39:29 +0000 (22:39 +0200)]
Merge https://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder

* https://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder:
  libopenjpegdec: respect JP2 color space, fix ticket 1179

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovqavideo: return error if image size is not a multiple of block size
Mans Rullgard [Mon, 23 Apr 2012 12:16:33 +0000 (13:16 +0100)]
vqavideo: return error if image size is not a multiple of block size

The decoder assumes in various places that the image size
is a multiple of the block size, and there is no obvious
way to support odd sizes.  Bailing out early if the header
specifies a bad size avoids various errors later on.

Fixes CVE-2012-0947.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agocosmetics: indentation
Justin Ruggles [Thu, 26 Apr 2012 15:07:41 +0000 (11:07 -0400)]
cosmetics: indentation

7 years agoavformat: only fill-in interpolated timestamps if duration is non-zero
Justin Ruggles [Thu, 26 Apr 2012 15:02:02 +0000 (11:02 -0400)]
avformat: only fill-in interpolated timestamps if duration is non-zero

This avoids returning duplicate timestamps for multiple packets when the
demuxer does not provide all timestamps and packet duration is not known.

7 years agoavformat: remove a workaround for broken timestamps
Justin Ruggles [Thu, 26 Apr 2012 14:59:05 +0000 (10:59 -0400)]
avformat: remove a workaround for broken timestamps

This modifies pts in situations other than what was intended, leading to
invalid timestamps.

Reverts commit 90bb394dccacd10607153833a0aeba0d970dc8db

7 years agolibopenjpegdec: respect JP2 color space, fix ticket 1179
Michael Bradshaw [Thu, 3 May 2012 18:27:04 +0000 (12:27 -0600)]
libopenjpegdec: respect JP2 color space, fix ticket 1179

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 3 May 2012 19:02:32 +0000 (21:02 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpeg12: fixed parsing in some mpeg2 streams
  Add SMPTE240M transfer characteristics flag.
  mpegts: Some additional HDMV types and reg descriptors for mpegts
  motionpixels: Clip YUV values after applying a gradient.
  jpeg: handle progressive in second field of interlaced.
  ituh263dec: Implement enough of Annex O (scalability) to fix a FPE.
  h263: more strictly forbid frame size changes with frame-mt.
  h264: additional protection against unsupported size/bitdepth changes.
  tta: prevents overflows for 32bit integers in header.
  configure: remove malloc_aligned.
  vp8: update frame size changes on thread context switches.
  snowdsp: explicitily state instruction size.
  wmall: fix reconstructing audio with uncoded channels
  WMAL cosmetics: fix indentation
  gitignore: add Win32 library suffixes

Conflicts:
configure
libavcodec/h263dec.c
libavcodec/h264.c
libavcodec/ituh263dec.c
libavcodec/mjpegdec.c
libavcodec/wmalosslessdec.c
libavcodec/x86/snowdsp_mmx.c
libavformat/mpegts.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/src_buffer: fix indent.
Clément Bœsch [Thu, 3 May 2012 18:02:00 +0000 (20:02 +0200)]
lavfi/src_buffer: fix indent.

7 years agoffmpeg: fix indent.
Clément Bœsch [Thu, 3 May 2012 18:01:23 +0000 (20:01 +0200)]
ffmpeg: fix indent.

7 years agosrc_buffer: merge av_asrc_buffer_add_audio_buffer_ref.
Nicolas George [Fri, 27 Apr 2012 22:16:20 +0000 (00:16 +0200)]
src_buffer: merge av_asrc_buffer_add_audio_buffer_ref.

Implement it using av_buffersrc_add_ref.

7 years agosrc_buffer: move audio format change check in a separate function.
Nicolas George [Fri, 27 Apr 2012 18:36:57 +0000 (20:36 +0200)]
src_buffer: move audio format change check in a separate function.

7 years agosrc_buffer: move buffer copy in a separate function.
Nicolas George [Fri, 27 Apr 2012 18:24:20 +0000 (20:24 +0200)]
src_buffer: move buffer copy in a separate function.

This will make merging with the audio part easier.

7 years agosrc_buffer: move format change check in a separate function.
Nicolas George [Fri, 27 Apr 2012 18:11:00 +0000 (20:11 +0200)]
src_buffer: move format change check in a separate function.

This will make merging the check with the audio part easier.

7 years agosrc_buffer: introduce av_buffersrc_add_ref().
Nicolas George [Fri, 27 Apr 2012 18:02:52 +0000 (20:02 +0200)]
src_buffer: introduce av_buffersrc_add_ref().

This function merges the features of
av_vsrc_buffer_add_video_buffer_ref() and
av_buffersrc_buffer().

7 years agodoc: fix API examples references.
Clément Bœsch [Thu, 3 May 2012 17:53:38 +0000 (19:53 +0200)]
doc: fix API examples references.

7 years agoJACOsub demuxer, decoder and muxer.
Clément Bœsch [Mon, 18 Apr 2011 15:40:51 +0000 (17:40 +0200)]
JACOsub demuxer, decoder and muxer.

7 years agoffplay: use AVFrame accessor.
Nicolas George [Sun, 29 Apr 2012 09:17:16 +0000 (11:17 +0200)]
ffplay: use AVFrame accessor.

7 years agoffmpeg: use AVFrame accessor.
Nicolas George [Sun, 29 Apr 2012 09:16:03 +0000 (11:16 +0200)]
ffmpeg: use AVFrame accessor.

7 years agolavc: implement accessors for some AVFrame fields.
Nicolas George [Sun, 29 Apr 2012 09:10:17 +0000 (11:10 +0200)]
lavc: implement accessors for some AVFrame fields.

Compared to av_opt_ptr, accessors bring:

- better performance (negligible);
- compile-time type check;
- link-time existence check
  (or at worst, a dynamic linker error instead of a NULL dereference).

7 years agompeg12: fixed parsing in some mpeg2 streams
Hendrik Leppkes [Sun, 29 Apr 2012 16:33:40 +0000 (16:33 +0000)]
mpeg12: fixed parsing in some mpeg2 streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoAdd SMPTE240M transfer characteristics flag.
Hendrik Leppkes [Sun, 29 Apr 2012 16:33:34 +0000 (16:33 +0000)]
Add SMPTE240M transfer characteristics flag.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agompegts: Some additional HDMV types and reg descriptors for mpegts
Joakim Plate [Sun, 29 Apr 2012 16:33:32 +0000 (16:33 +0000)]
mpegts: Some additional HDMV types and reg descriptors for mpegts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoswr: add ff_int32_to_float_a_avx
Michael Niedermayer [Thu, 3 May 2012 13:52:36 +0000 (15:52 +0200)]
swr: add ff_int32_to_float_a_avx

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswr-test: fix rounding error leading to NAN
Michael Niedermayer [Thu, 3 May 2012 12:42:37 +0000 (14:42 +0200)]
swr-test: fix rounding error leading to NAN

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexamples/decoding_encoding: fix encoding when all frames got buffered.
Michael Niedermayer [Thu, 3 May 2012 10:25:17 +0000 (12:25 +0200)]
examples/decoding_encoding: fix encoding when all frames got buffered.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/filters: consistently use '"' for quoting the drawtext arguments in examples
Stefano Sabatini [Thu, 3 May 2012 08:35:24 +0000 (10:35 +0200)]
doc/filters: consistently use '"' for quoting the drawtext arguments in examples

7 years agolavfi/drawtext: give a new alias "timecode_rate" to the the r/rate option
Stefano Sabatini [Tue, 1 May 2012 22:56:30 +0000 (00:56 +0200)]
lavfi/drawtext: give a new alias "timecode_rate" to the the r/rate option

The option is related to the timecode, the new name clearly specifies the
context. Also it allows to list the option close to the other timecode
options.

7 years agodoc/filters: document drawtext draw expression
Stefano Sabatini [Tue, 1 May 2012 11:26:05 +0000 (13:26 +0200)]
doc/filters: document drawtext draw expression

7 years agolavfi/drawtext: rename and document variables d_expr and d_pexpr
Stefano Sabatini [Tue, 1 May 2012 10:57:36 +0000 (12:57 +0200)]
lavfi/drawtext: rename and document variables d_expr and d_pexpr

Use the more expressive names draw_expr and draw_pexpr, also more
consistent.

7 years agodoc/filters: document rand() drawtext expression function
Stefano Sabatini [Tue, 1 May 2012 10:52:16 +0000 (12:52 +0200)]
doc/filters: document rand() drawtext expression function

7 years agodoc/filters: document x and y drawtext expression parameters
Stefano Sabatini [Tue, 1 May 2012 10:26:11 +0000 (12:26 +0200)]
doc/filters: document x and y drawtext expression parameters

7 years agodoc/filters: fix location of "rate" and "timecode" drawtext options
Stefano Sabatini [Tue, 1 May 2012 10:11:11 +0000 (12:11 +0200)]
doc/filters: fix location of "rate" and "timecode" drawtext options

They are options, not expression parameters.

7 years agolavfi/drawtext: alphabetically sort the expression parameters
Stefano Sabatini [Tue, 1 May 2012 09:37:15 +0000 (11:37 +0200)]
lavfi/drawtext: alphabetically sort the expression parameters

7 years agomotionpixels: Clip YUV values after applying a gradient.
Alex Converse [Wed, 2 May 2012 19:08:03 +0000 (12:08 -0700)]
motionpixels: Clip YUV values after applying a gradient.

Prevents illegal reads on truncated and malformed input.

CC: libav-stable@libav.org
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 2 May 2012 19:12:34 +0000 (21:12 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  arm: intreadwrite: disable inline asm for gcc 4.7 and later
  arm: intreadwrite: fix inline asm constraints for gcc 4.6 and later
  indeo3: fix motion vector validation
  pcm_bluray: set bits_per_raw_sample for > 16-bit
  twinvq: fix out of bounds array access
  lavr: use 8.8 instead of 10.6 as the 16-bit fixed-point mixing coeff type

Conflicts:
doc/APIchanges
libavcodec/indeo3.c
libavcodec/pcm-mpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agojpeg: handle progressive in second field of interlaced.
Ronald S. Bultje [Wed, 14 Mar 2012 00:18:41 +0000 (17:18 -0700)]
jpeg: handle progressive in second field of interlaced.

Progressive data is allocated later in decode_sof(), not allocating
that data leads to NULL dereferences.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agoituh263dec: Implement enough of Annex O (scalability) to fix a FPE.
Michael Niedermayer [Thu, 29 Mar 2012 23:54:28 +0000 (16:54 -0700)]
ituh263dec: Implement enough of Annex O (scalability) to fix a FPE.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>