ffmpeg.git
8 years agolibavfilter: add colormatrix filter
multiple authors [Sat, 10 Mar 2012 03:04:19 +0000 (04:04 +0100)]
libavfilter: add colormatrix filter

Ported by: Baptiste Coudurier
cleanup+fate by ubitux
For detailed authorship of the original code please see avisynth

8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 4 Apr 2012 19:17:52 +0000 (21:17 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  w32threads: Make pthread_cond_wait follow POSIX
  cosmetics: Consistently place static, inline and av_cold attributes/keywords.
  sbrdsp: Use standard multiple inclusion guards.
  pcm: K&R formatting cosmetics
  rawdec: Support fourccs YV16 and YV24
  rtmp: implement bandwidth notification
  rtmp: update supported audio codecs value

Conflicts:
libavcodec/pcm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdd forgotten avio-direct reference file.
Reimar Döffinger [Wed, 4 Apr 2012 19:14:04 +0000 (21:14 +0200)]
Add forgotten avio-direct reference file.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoAdd AVIO_FLAG_DIRECT.
Reimar Döffinger [Sun, 25 Mar 2012 09:58:55 +0000 (11:58 +0200)]
Add AVIO_FLAG_DIRECT.

Allows avoiding the buffer when using avio read, write and seek functions.
When using the ffmpeg executable -avioflags direct can be used to enable
this mode for input files, but has no effect on output files.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoMerge remote-tracking branch 'dwbuiten/master'
Michael Niedermayer [Wed, 4 Apr 2012 17:05:17 +0000 (19:05 +0200)]
Merge remote-tracking branch 'dwbuiten/master'

* dwbuiten/master:
  w32threads: Make pthread_cond_wait follow POSIX

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agow32threads: Make pthread_cond_wait follow POSIX
Derek Buitenhuis [Tue, 3 Apr 2012 21:36:49 +0000 (17:36 -0400)]
w32threads: Make pthread_cond_wait follow POSIX

pthread_cond_wait is supposed to return an integer,
and indeed does sometimes. Fix its function declaration
to match its behavior and POSIX.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agow32threads: Make pthread_cond_wait follow POSIX
Derek Buitenhuis [Tue, 3 Apr 2012 21:36:49 +0000 (17:36 -0400)]
w32threads: Make pthread_cond_wait follow POSIX

pthread_cond_wait is supposed to return an integer,
and indeed does sometimes. Fix its function declaration
to match its behavior and POSIX.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agolavf: add mp1/2 to determinable_frame_size()
Michael Niedermayer [Wed, 4 Apr 2012 16:21:37 +0000 (18:21 +0200)]
lavf: add mp1/2 to determinable_frame_size()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoallcodecs: move libaacplus down.
Michael Niedermayer [Wed, 4 Apr 2012 15:44:21 +0000 (17:44 +0200)]
allcodecs: move libaacplus down.

We choose the first encoder by default and libaccplus has a
quite limited set of supported bitrates/sample rates.
Thus leading to failure by default in many cases when it is
enabled at compile time.
Moving it down means that the other aac encoders are favored
by default which avoids this issue.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomxfdec: Fix regression on files from Pinnacle Thunder
Tomas Härdin [Wed, 4 Apr 2012 12:24:49 +0000 (14:24 +0200)]
mxfdec: Fix regression on files from Pinnacle Thunder

The reason for this is that such files have IndexTableSegments which when parsed
cover EditUnit ranges like this:

 [0,1)
 [249,250)
 [249,377)
 [0,249)

where each interval is [IndexStartPosition,IndexStartPosition+IndexDuration).
This would be reduced to a sparse index like:

 [0,1), [249,250)

instead of the full range:

 [0,249), [249,377)

See TimeCode_HD.mxf, UMID =
060a2b340101010101010410130000000004001aa0e59175025b2a5600da4101.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_idet: print accumulated statistics at end
Michael Niedermayer [Wed, 4 Apr 2012 14:31:31 +0000 (16:31 +0200)]
vf_idet: print accumulated statistics at end

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_idet: set interlaced flags
Michael Niedermayer [Wed, 4 Apr 2012 14:27:24 +0000 (16:27 +0200)]
vf_idet: set interlaced flags

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_idet: fix indention
Michael Niedermayer [Wed, 4 Apr 2012 14:19:56 +0000 (16:19 +0200)]
vf_idet: fix indention

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_idet: move statistic variables into the context
Michael Niedermayer [Wed, 4 Apr 2012 14:19:36 +0000 (16:19 +0200)]
vf_idet: move statistic variables into the context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_idet: remove unused function
Michael Niedermayer [Wed, 4 Apr 2012 14:12:12 +0000 (16:12 +0200)]
vf_idet: remove unused function

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_idet: pass context to av_log()
Michael Niedermayer [Wed, 4 Apr 2012 14:10:47 +0000 (16:10 +0200)]
vf_idet: pass context to av_log()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_ass: use drawutils.
Nicolas George [Wed, 28 Mar 2012 13:51:13 +0000 (15:51 +0200)]
vf_ass: use drawutils.

8 years agovf_drawtext: use drawutils.
Nicolas George [Wed, 28 Mar 2012 13:27:07 +0000 (15:27 +0200)]
vf_drawtext: use drawutils.

8 years agodrawutils: implement uniform and mask blending.
Nicolas George [Wed, 28 Mar 2012 13:26:45 +0000 (15:26 +0200)]
drawutils: implement uniform and mask blending.

8 years agolibavfilter: Add interlace detect filter.
Michael Niedermayer [Tue, 3 Apr 2012 13:56:04 +0000 (15:56 +0200)]
libavfilter: Add interlace detect filter.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agov4l2: allow to convert monotonic timestamps.
Nicolas George [Sat, 3 Mar 2012 14:56:11 +0000 (15:56 +0100)]
v4l2: allow to convert monotonic timestamps.

8 years agocosmetics: Consistently place static, inline and av_cold attributes/keywords.
Diego Biurrun [Fri, 30 Mar 2012 21:34:22 +0000 (23:34 +0200)]
cosmetics: Consistently place static, inline and av_cold attributes/keywords.

8 years agosbrdsp: Use standard multiple inclusion guards.
Diego Biurrun [Sat, 31 Mar 2012 11:41:16 +0000 (13:41 +0200)]
sbrdsp: Use standard multiple inclusion guards.

8 years agotimefilter: allow to evaluate at other times.
Nicolas George [Sun, 4 Mar 2012 11:17:02 +0000 (12:17 +0100)]
timefilter: allow to evaluate at other times.

8 years agopcm: K&R formatting cosmetics
Aneesh Dogra [Fri, 30 Mar 2012 15:33:02 +0000 (21:03 +0530)]
pcm: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoffmpeg: fix a few typo.
Clément Bœsch [Wed, 4 Apr 2012 09:50:16 +0000 (11:50 +0200)]
ffmpeg: fix a few typo.

8 years agompeg4: dont reset picture_num for xvid
Michael Niedermayer [Wed, 4 Apr 2012 02:19:43 +0000 (04:19 +0200)]
mpeg4: dont reset picture_num for xvid

Fixes Ticket1162

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: fix seeking in low delay streams without IDR
Michael Niedermayer [Wed, 4 Apr 2012 01:43:23 +0000 (03:43 +0200)]
h264: fix seeking in low delay streams without IDR

Fixes Ticket1165

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 3 Apr 2012 23:14:45 +0000 (01:14 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Unscaled Planar RGB -> RGB support in swscale.

Conflicts:
libswscale/swscale_unscaled.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavf: print some more things in TS debug statements
Michael Niedermayer [Tue, 3 Apr 2012 21:35:39 +0000 (23:35 +0200)]
lavf: print some more things in TS debug statements

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavf: increase RELATIVE_TS_BASE
Michael Niedermayer [Tue, 3 Apr 2012 21:34:53 +0000 (23:34 +0200)]
lavf: increase RELATIVE_TS_BASE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agorawdec: Support fourccs YV16 and YV24
Piotr Bandurski [Wed, 28 Dec 2011 04:50:27 +0000 (04:50 +0000)]
rawdec: Support fourccs YV16 and YV24

8 years agortmp: implement bandwidth notification
Raffaele Sena [Wed, 7 Mar 2012 18:21:16 +0000 (10:21 -0800)]
rtmp: implement bandwidth notification

Improve compatibility with some servers.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agortmp: update supported audio codecs value
Samuel Pitoiset [Mon, 2 Apr 2012 20:50:38 +0000 (22:50 +0200)]
rtmp: update supported audio codecs value

The audio codecs property is composed by all values except
SUPPORT_SND_INTEL (0x0008) and SUPPORT_SND_UNUSED (0x0010) which are
unused.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years agoswfdec: support compressed swf.
Clément Bœsch [Mon, 2 Apr 2012 23:33:03 +0000 (01:33 +0200)]
swfdec: support compressed swf.

8 years agoUnscaled Planar RGB -> RGB support in swscale.
Hans-Kristian Arntzen [Sun, 6 Nov 2011 09:43:47 +0000 (10:43 +0100)]
Unscaled Planar RGB -> RGB support in swscale.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agovf_lut: avoid rgb component indexing in the inner loop
Michael Niedermayer [Tue, 3 Apr 2012 16:30:07 +0000 (18:30 +0200)]
vf_lut: avoid rgb component indexing in the inner loop

15k->10k cpu cycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_lut: optimize rgb codepath
Michael Niedermayer [Tue, 3 Apr 2012 16:13:33 +0000 (18:13 +0200)]
vf_lut: optimize rgb codepath

19k -> 15k cpu cycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_lut: optimize planar case
Michael Niedermayer [Tue, 3 Apr 2012 15:49:04 +0000 (17:49 +0200)]
vf_lut: optimize planar case

2500 -> 1900 cpu cycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomxfenc: Don't allow muxing audio-only since it's not supported
Tomas Härdin [Thu, 29 Mar 2012 09:48:45 +0000 (11:48 +0200)]
mxfenc: Don't allow muxing audio-only since it's not supported

This fixes muxing audio-only output resulting in SIGFPE due to lack of EditRate.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoasf: remove duplicated index_guid
Michael Niedermayer [Tue, 3 Apr 2012 07:44:10 +0000 (09:44 +0200)]
asf: remove duplicated index_guid

Found-by:ramiro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 2 Apr 2012 22:10:19 +0000 (00:10 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  FATE: Add RALF decoding test

Conflicts:
tests/fate/real.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: fix incompatible pointer type warnings.
Michael Niedermayer [Mon, 2 Apr 2012 20:05:42 +0000 (22:05 +0200)]
h264: fix incompatible pointer type warnings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegts: fix a unused function warning
Michael Niedermayer [Mon, 2 Apr 2012 19:33:42 +0000 (21:33 +0200)]
mpegts: fix a unused function warning

note the function is used under #if

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodct-test: fix incompatible pointer types warning
Michael Niedermayer [Mon, 2 Apr 2012 19:26:08 +0000 (21:26 +0200)]
dct-test: fix incompatible pointer types warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodes: Fix half a dozen warnings
Michael Niedermayer [Mon, 2 Apr 2012 19:23:56 +0000 (21:23 +0200)]
des: Fix half a dozen warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: affect source stream index in new_output_stream function
Matthieu Bouron [Thu, 29 Mar 2012 13:45:50 +0000 (15:45 +0200)]
ffmpeg: affect source stream index in new_output_stream function

Fix map_channel when mapped audio stream index is greater than 0.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomovenc: fix segfault with chapter tracks
Michael Niedermayer [Mon, 2 Apr 2012 15:00:20 +0000 (17:00 +0200)]
movenc: fix segfault with chapter tracks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolibavcodec: be less picky on nonsense rc_max_rate / rc_buffer_size combinations.
Michael Niedermayer [Mon, 2 Apr 2012 00:58:08 +0000 (02:58 +0200)]
libavcodec: be less picky on nonsense rc_max_rate / rc_buffer_size combinations.

Some applications use these combinations and to maintain ABI
compatibility with previous versions we should not suddenly
fail. Thus only display a warning for the newly detected cases

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 1 Apr 2012 21:48:36 +0000 (23:48 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vsrc_buffer: allow buffering arbitrary number of frames.
  vf_scale: avoid a pointless memcpy in no-op conversion.
  avfiltergraph: try to reduce format conversions in filters.
  avfiltergraph: add an AVClass to AVFilterGraph on next major bump.
  id3v2: fix skipping extended header in id3v2.4

Conflicts:
libavfilter/vf_scale.c
libavfilter/vsrc_buffer.c
libavformat/id3v2.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosnow-test: fix pointer type warnings
Michael Niedermayer [Sun, 1 Apr 2012 20:28:24 +0000 (22:28 +0200)]
snow-test: fix pointer type warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswr-test: remove unused variable
Michael Niedermayer [Sun, 1 Apr 2012 20:24:06 +0000 (22:24 +0200)]
swr-test: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofft-test: fix all pointer type warnings.
Michael Niedermayer [Sun, 1 Apr 2012 20:19:45 +0000 (22:19 +0200)]
fft-test: fix all pointer type warnings.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswr: remove unused variable
Michael Niedermayer [Sun, 1 Apr 2012 20:11:34 +0000 (22:11 +0200)]
swr: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswr: fix pointer type warnings
Michael Niedermayer [Sun, 1 Apr 2012 20:10:40 +0000 (22:10 +0200)]
swr: fix pointer type warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodsputil_mmx: fix scalarproduct prototypes
Michael Niedermayer [Sun, 1 Apr 2012 20:04:05 +0000 (22:04 +0200)]
dsputil_mmx: fix scalarproduct prototypes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agotxd: Fix "set but not used" warning
Michael Niedermayer [Sun, 1 Apr 2012 19:58:29 +0000 (21:58 +0200)]
txd: Fix "set but not used" warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFATE: Add RALF decoding test
Derek Buitenhuis [Sat, 31 Mar 2012 19:57:26 +0000 (15:57 -0400)]
FATE: Add RALF decoding test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoaudiointerleave: check timebase
Michael Niedermayer [Sun, 1 Apr 2012 19:21:13 +0000 (21:21 +0200)]
audiointerleave: check timebase

Replaces FPE by clean error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: fix plain -profile support
Michael Niedermayer [Sun, 1 Apr 2012 18:48:20 +0000 (20:48 +0200)]
ffmpeg: fix plain -profile support

Fixes Ticket387

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodirecdec: fix infinite loop
Michael Niedermayer [Sun, 1 Apr 2012 14:11:29 +0000 (16:11 +0200)]
direcdec: fix infinite loop

Fixes Ticket1156

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoThe lt and lte functions were swapped.
maxlazarov [Fri, 30 Mar 2012 18:23:36 +0000 (11:23 -0700)]
The lt and lte functions were swapped.

8 years agoavidec: better NI detection.
Michael Niedermayer [Sun, 1 Apr 2012 07:49:32 +0000 (09:49 +0200)]
avidec: better NI detection.

The new code detects NI avis by analyzing the index.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovsrc_buffer: allow buffering arbitrary number of frames.
Anton Khirnov [Thu, 29 Mar 2012 09:22:40 +0000 (11:22 +0200)]
vsrc_buffer: allow buffering arbitrary number of frames.

8 years agovf_scale: avoid a pointless memcpy in no-op conversion.
Anton Khirnov [Thu, 29 Mar 2012 05:02:27 +0000 (07:02 +0200)]
vf_scale: avoid a pointless memcpy in no-op conversion.

I.e. just pass the buffer along when src parameters == dst parameters.

8 years agoavfiltergraph: try to reduce format conversions in filters.
Anton Khirnov [Fri, 23 Mar 2012 14:14:40 +0000 (15:14 +0100)]
avfiltergraph: try to reduce format conversions in filters.

Current code, with a filterchain such as
(input - yuv411) -> (scale - any) -> (sink - any)
will result in yuv420 being chosen for the second link, which is clearly
not right.

This commit attempts to improve in the following way:
repeat until convergence:
  loop over all filters
    find input link with exactly one format
    force this format on all output links of the same type (if possible)

8 years agoavfiltergraph: add an AVClass to AVFilterGraph on next major bump.
Anton Khirnov [Sun, 18 Mar 2012 10:27:38 +0000 (11:27 +0100)]
avfiltergraph: add an AVClass to AVFilterGraph on next major bump.

It will be used for logging, possibly also AVOptions.

8 years agoid3v2: fix skipping extended header in id3v2.4
Anton Khirnov [Sat, 31 Mar 2012 05:52:42 +0000 (07:52 +0200)]
id3v2: fix skipping extended header in id3v2.4

In v2.4, the length includes the length field itself.

8 years agolavc: check media type of the decoder before calling it.
Michael Niedermayer [Sun, 1 Apr 2012 00:57:27 +0000 (02:57 +0200)]
lavc: check media type of the decoder before calling it.

This fixes a segfault where a video decoder was called
from avcodec_decode_audio*().

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 31 Mar 2012 22:36:43 +0000 (00:36 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  apedec: check bits <= 32.
  cavs: Remove unused code.
  oggenc: fix condition when not to flush due to keyframe granule.
  oggenc: add pagesize option to set preferred page size
  libspeexdec: set frame size in libspeex_decode_init()
  smacker audio: sign-extend the initial 16-bit predicted value

Conflicts:
libavcodec/apedec.c
libavcodec/libspeexdec.c
libavformat/oggenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoindeo4: fix null ptr dereference
Michael Niedermayer [Sat, 31 Mar 2012 21:31:56 +0000 (23:31 +0200)]
indeo4: fix null ptr dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFATE: Add RALF decoding test
Derek Buitenhuis [Sat, 31 Mar 2012 20:13:59 +0000 (16:13 -0400)]
FATE: Add RALF decoding test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoindeo4: check that num_mbs matches
Michael Niedermayer [Sat, 31 Mar 2012 19:42:50 +0000 (21:42 +0200)]
indeo4: check that num_mbs matches

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoapedec: check bits <= 32.
Michael Niedermayer [Thu, 29 Mar 2012 17:52:21 +0000 (17:52 +0000)]
apedec: check bits <= 32.

Fixes a floating-point exception further down.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agotm2dec: fix overread
Michael Niedermayer [Sat, 31 Mar 2012 16:25:44 +0000 (18:25 +0200)]
tm2dec: fix overread

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocavs: Remove unused code.
Aneesh Dogra [Fri, 30 Mar 2012 18:14:06 +0000 (23:44 +0530)]
cavs: Remove unused code.

The square is always passed as 1 whenever the function is called and
thus the if block never gets executed.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoividsp: prevent pointers from going outside and overreading.
Michael Niedermayer [Sat, 31 Mar 2012 14:22:30 +0000 (16:22 +0200)]
ividsp: prevent pointers from going outside and overreading.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoividsp: zero pitch so as not to overread
Michael Niedermayer [Sat, 31 Mar 2012 13:52:13 +0000 (15:52 +0200)]
ividsp: zero pitch so as not to overread

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoindeo5: change AVCodecContext w/h when internal ones change.
Michael Niedermayer [Sat, 31 Mar 2012 12:16:48 +0000 (14:16 +0200)]
indeo5: change AVCodecContext w/h when internal ones change.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate: update regression checksum due to 95ce0ddcfe99182365e0e57f5f41d7f1a01c57eb
Michael Niedermayer [Sat, 31 Mar 2012 14:34:58 +0000 (16:34 +0200)]
fate: update regression checksum due to 95ce0ddcfe99182365e0e57f5f41d7f1a01c57eb

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavfi/fade: fix black level for non studio-level pixel formats
Stefano Sabatini [Wed, 28 Mar 2012 22:17:23 +0000 (00:17 +0200)]
lavfi/fade: fix black level for non studio-level pixel formats

Fix trac ticket #1139, regression introduced in 8c1fb50d077d5f954.

8 years agolxfdec: support version 1 files, too.
Reimar Döffinger [Sat, 24 Mar 2012 15:47:33 +0000 (16:47 +0100)]
lxfdec: support version 1 files, too.

Fixes trac issue #656.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agomovenc: add some default cases.
Reimar Döffinger [Sat, 24 Mar 2012 20:36:51 +0000 (21:36 +0100)]
movenc: add some default cases.

This fixes crashes when copying a data track as in trac
issue #236.
No proper timecode tracks will be written though.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoMOV: Fix old-style muxed raw-audio data.
Reimar Döffinger [Sun, 25 Mar 2012 12:13:23 +0000 (14:13 +0200)]
MOV: Fix old-style muxed raw-audio data.

This patch fixes the sample from trac issue #522.
The issue is that the mov demuxer insists on using its
calculated sample_size (which is nonsense for old-style tracks)
instead of the one encoded in the track.
The old raw audio code should be using the value in stsz, because
the size of a single sample never makes sense for the size of
a full audio packet, whereas the new code will multiply the
sample size by the chunk size, so it should use the calculated value.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoMOV: bail out to toplevel when encountering a trak or mdat chunk.
Reimar Döffinger [Sun, 25 Mar 2012 12:13:04 +0000 (14:13 +0200)]
MOV: bail out to toplevel when encountering a trak or mdat chunk.

This patch fixes the sample from trac issue #733.
The issue is that the size of the trak elements is coded
too large, so that the next trak element would be parsed
as part of the first and truncated incorrectly.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agovsrc_buffer: Store allocated scale filter and free it later.
Michael Niedermayer [Sat, 31 Mar 2012 06:49:18 +0000 (08:49 +0200)]
vsrc_buffer: Store allocated scale filter and free it later.

Fixes a memleak.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavfilter: allow freeing NULL.
Michael Niedermayer [Sat, 31 Mar 2012 06:48:23 +0000 (08:48 +0200)]
avfilter: allow freeing NULL.

this way avfilter_free() can be called without NULL checks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodcttest: put ff_prores_idct_put_10_sse2_wrap under HAVE_YASM
Michael Niedermayer [Fri, 30 Mar 2012 22:03:44 +0000 (00:03 +0200)]
dcttest: put ff_prores_idct_put_10_sse2_wrap under HAVE_YASM

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agooggenc: fix condition when not to flush due to keyframe granule.
Reimar Döffinger [Sat, 18 Feb 2012 20:21:20 +0000 (21:21 +0100)]
oggenc: fix condition when not to flush due to keyframe granule.

The previous condition of 0 page size was wrong,
that would disable the mechanism for all frames at
a start of a page, thus some keyframes still would not
get their own granule.
The real problem is that header packets must not be flushed,
but they have (and must have) 0 granule and thus would
be detected as keyframes.
Add a separate parameter to mark header packets.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
8 years agooggenc: add pagesize option to set preferred page size
Andres Gonzalez [Thu, 27 Jan 2011 09:14:21 +0000 (10:14 +0100)]
oggenc: add pagesize option to set preferred page size

When set, if an Ogg stream buffer has enough data, a page is made
instead of filling maximum-size pages. Using smaller pages results
smaller seek intervals at the expense of higher container overhead.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
8 years agolibspeexdec: set frame size in libspeex_decode_init()
Justin Ruggles [Thu, 29 Mar 2012 16:01:42 +0000 (12:01 -0400)]
libspeexdec: set frame size in libspeex_decode_init()

This fixes speex decoding, which was broken in 85469f1c.

8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 30 Mar 2012 20:10:17 +0000 (22:10 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h264: drop ff_h264_ prefix from static function ff_h264_decode_rbsp_trailing()
  h264: Make ff_h264_decode_end() static, it is not used externally.
  output-example: K&R formatting cosmetics, comment spelling fixes
  avf: make the example output the proper message
  avf: fix audio writing in the output-example
  mov: don't overwrite existing indexes.
  lzw: fix potential integer overflow.
  truemotion: forbid invalid VLC bitsizes and token values.
  truemotion2: handle out-of-frame motion vectors through edge extension.
  configure: Check for a different SDL function

Conflicts:
configure
doc/examples/muxing.c
libavcodec/truemotion2.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosvq3: Fix pointer type mismatch warning.
Michael Niedermayer [Fri, 30 Mar 2012 19:51:46 +0000 (21:51 +0200)]
svq3: Fix pointer type mismatch warning.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocavsdec: initialize all tables to zeros.
Michael Niedermayer [Fri, 30 Mar 2012 19:47:06 +0000 (21:47 +0200)]
cavsdec: initialize all tables to zeros.

This ensures that they dont contain invalid values.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosmacker audio: sign-extend the initial 16-bit predicted value
Franz Brauße [Fri, 30 Mar 2012 18:40:14 +0000 (14:40 -0400)]
smacker audio: sign-extend the initial 16-bit predicted value

Fixes Bug #265

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
8 years agosvq1enc: fix ptr type mismatch warning
Michael Niedermayer [Fri, 30 Mar 2012 18:23:13 +0000 (20:23 +0200)]
svq1enc: fix ptr type mismatch warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompeghaudiodec: Fix "set but not used" warnings
Michael Niedermayer [Fri, 30 Mar 2012 18:17:58 +0000 (20:17 +0200)]
mpeghaudiodec: Fix "set but not used" warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomjpegdec: Fix "assignment from incompatible pointer type" warnings
Michael Niedermayer [Fri, 30 Mar 2012 18:15:21 +0000 (20:15 +0200)]
mjpegdec: Fix "assignment from incompatible pointer type" warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: Fix "function declaration isn’t a prototype" warning
Michael Niedermayer [Fri, 30 Mar 2012 18:11:50 +0000 (20:11 +0200)]
j2kenc: Fix "function declaration isn’t a prototype" warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kdec: fix format strings
Michael Niedermayer [Fri, 30 Mar 2012 18:10:39 +0000 (20:10 +0200)]
j2kdec: fix format strings

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