]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 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>
12 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>
12 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>
12 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

12 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>
12 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>
12 years agoswfdec: support compressed swf.
Clément Bœsch [Mon, 2 Apr 2012 23:33:03 +0000 (01:33 +0200)]
swfdec: support compressed swf.

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

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

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

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

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

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

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

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

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 years agointerplayvideodec: pass correct pointer to av_dlog()
Michael Niedermayer [Fri, 30 Mar 2012 18:08:07 +0000 (20:08 +0200)]
interplayvideodec: pass correct pointer to av_dlog()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodvbsubdec: Fix "set but not used" warning
Michael Niedermayer [Fri, 30 Mar 2012 17:59:48 +0000 (19:59 +0200)]
dvbsubdec: Fix "set but not used" warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolibavformat: Fix several "incompatible pointer type" warnings.
Michael Niedermayer [Fri, 30 Mar 2012 17:52:30 +0000 (19:52 +0200)]
libavformat: Fix several "incompatible pointer type" warnings.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocavsdec: ensure the tables have been allocated before using them
Michael Niedermayer [Fri, 30 Mar 2012 17:18:42 +0000 (19:18 +0200)]
cavsdec: ensure the tables have been allocated before using them

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: drop ff_h264_ prefix from static function ff_h264_decode_rbsp_trailing()
Diego Biurrun [Thu, 29 Mar 2012 12:15:16 +0000 (14:15 +0200)]
h264: drop ff_h264_ prefix from static function ff_h264_decode_rbsp_trailing()

12 years agoh264: Make ff_h264_decode_end() static, it is not used externally.
Diego Biurrun [Thu, 29 Mar 2012 11:52:21 +0000 (13:52 +0200)]
h264: Make ff_h264_decode_end() static, it is not used externally.

Also drop the now unnecessary ff_ prefix from its name.

12 years agooutput-example: K&R formatting cosmetics, comment spelling fixes
Diego Biurrun [Fri, 30 Mar 2012 00:27:05 +0000 (02:27 +0200)]
output-example: K&R formatting cosmetics, comment spelling fixes

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 30 Mar 2012 04:03:30 +0000 (06:03 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mp3dec: perform I/S and M/S only when frame mode is joint stereo.
  id3v2: add another mimetype for JPEG image
  lzw: prevent buffer overreads.
  WMAL: Remove inaccurate and unnecessary doxy
  h264: fix cabac-on-stack after safe cabac reader.
  truemotion2: convert packet header reading to bytestream2.

Conflicts:
libavcodec/lzw.c
libavcodec/truemotion2.c
libavformat/id3v2.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoimg2dec: remove GLOB_TILDE support.
Michael Niedermayer [Thu, 29 Mar 2012 22:35:01 +0000 (00:35 +0200)]
img2dec: remove GLOB_TILDE support.

tilde expansion should/can be done by the shell

Reviewed-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoavf: make the example output the proper message
Luca Barbato [Thu, 29 Mar 2012 22:28:00 +0000 (15:28 -0700)]
avf: make the example output the proper message

av_dump_format needs the codecs opened in order to print
them.

12 years agoavf: fix audio writing in the output-example
Luca Barbato [Thu, 29 Mar 2012 19:00:37 +0000 (12:00 -0700)]
avf: fix audio writing in the output-example

av_init_packet does not reset data and size fields in AVPacket,
avcodec_encode_audio2 can use preallocated AVPacket.

12 years agoimg2dec: Recognize glob meta chars only if prefixed by %
Alexander Strasser [Sun, 11 Mar 2012 14:24:51 +0000 (15:24 +0100)]
img2dec: Recognize glob meta chars only if prefixed by %

  This changes globbing support to only be used if the character
contains at least one glob meta character that is preceded by
an unescaped %. To escape a literal % one would use %% which is
identical to the way to match a % with image2 sequence generation
feature.

* Makes it possible to have patterns like %04d-[720p].jpg work
  again with sequence number generation. Previously this would
  always be detected as a glob pattern and was interpreted by
  the image2 glob code instead.

* Makes it possible to use %*-[720p].jpg to match above pattern
  without having to double escape it to be not interpreted by most
  shells and not by the image2 glob code (previously one would
  need to use \*-\\\[720p\\\].jpg to achieve the same)

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoimg2: glob matching for image series
Brian Olson [Mon, 27 Feb 2012 09:27:17 +0000 (10:27 +0100)]
img2: glob matching for image series

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmpeg: check pts like dts for being in the past.
Michael Niedermayer [Thu, 29 Mar 2012 20:32:53 +0000 (22:32 +0200)]
ffmpeg: check pts like dts for being in the past.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomov: don't overwrite existing indexes.
Ronald S. Bultje [Wed, 28 Mar 2012 19:56:07 +0000 (12:56 -0700)]
mov: don't overwrite existing indexes.

Prevents all kind of badness if files contain multiple
indexes.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agolzw: fix potential integer overflow.
Ronald S. Bultje [Thu, 29 Mar 2012 03:00:38 +0000 (20:00 -0700)]
lzw: fix potential integer overflow.

12 years agotruemotion: forbid invalid VLC bitsizes and token values.
Ronald S. Bultje [Thu, 29 Mar 2012 17:25:04 +0000 (10:25 -0700)]
truemotion: forbid invalid VLC bitsizes and token values.

SHOW_UBITS() is only defined up to n_bits is 25, therefore forbid
values larger than this in get_vlc2() (max_bits). tokens[][] can be
used as an index in deltas[], which has a size of 64, so ensure the
values are smaller than that.

This prevents crashes on corrupt bitstreams.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agotruemotion2: handle out-of-frame motion vectors through edge extension.
Ronald S. Bultje [Thu, 29 Mar 2012 16:29:03 +0000 (09:29 -0700)]
truemotion2: handle out-of-frame motion vectors through edge extension.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
12 years agolavf: print ts values in pts < dts error message
Michael Niedermayer [Thu, 29 Mar 2012 18:31:14 +0000 (20:31 +0200)]
lavf: print ts values in pts < dts error message

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoconfigure: Check for a different SDL function
Martin Storsjö [Wed, 28 Mar 2012 17:37:13 +0000 (20:37 +0300)]
configure: Check for a different SDL function

This one is available both in SDL 1.2 and in 1.3 (which is the current
version available e.g. in macports), while 1.3 doesn't contain
SDL_Linked_Version().

The current check for SDL_Linked_Version() (available since SDL 1.2.13)
was added in 8f1b06c8, because including the headers for SDL_Init()
redirects the main() function, requiring the main function signature
to match the one of SDL_main (including argc/argv).

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoffmpeg: switch duration calculation code from avg to r frame_rate.
Michael Niedermayer [Thu, 29 Mar 2012 17:08:17 +0000 (19:08 +0200)]
ffmpeg: switch duration calculation code from avg to r frame_rate.

This heuristic is less likely to overshoot and cause encoder failure.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomp3dec: perform I/S and M/S only when frame mode is joint stereo.
Kostya Shishkov [Thu, 29 Mar 2012 10:08:07 +0000 (12:08 +0200)]
mp3dec: perform I/S and M/S only when frame mode is joint stereo.

Looks like some LAME versions produce dual stereo mode MP3s with
flags for intensity and middle stereo set. In this mode those flags
should be ignored like the reference decoder and derived ones do.

12 years agoid3v2: add another mimetype for JPEG image
Kostya Shishkov [Thu, 29 Mar 2012 10:07:35 +0000 (12:07 +0200)]
id3v2: add another mimetype for JPEG image

12 years agoDo not try to use lowres for unusual jpg subsampling.
Carl Eugen Hoyos [Thu, 29 Mar 2012 11:09:37 +0000 (13:09 +0200)]
Do not try to use lowres for unusual jpg subsampling.

Fixes ticket #1144.

12 years agoRevert "Fix compilation with hardcoded tables."
Carl Eugen Hoyos [Thu, 29 Mar 2012 06:02:10 +0000 (08:02 +0200)]
Revert "Fix compilation with hardcoded tables."

This reverts commit b17b2963692f5f7c19a2188e61922e00680c5fb4.

12 years agofate/vp8-size-change: set bitexact flag
Michael Niedermayer [Thu, 29 Mar 2012 04:03:55 +0000 (06:03 +0200)]
fate/vp8-size-change: set bitexact flag

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmpeg: pass bitexact flag to vsrc_buffer
Michael Niedermayer [Thu, 29 Mar 2012 03:56:47 +0000 (05:56 +0200)]
ffmpeg: pass bitexact flag to vsrc_buffer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoiff: prevent a possible crash with broken/prepared IFF PBM
Piotr Bandurski [Thu, 29 Mar 2012 02:59:58 +0000 (04:59 +0200)]
iff: prevent a possible crash with broken/prepared IFF PBM

Based on fix by Peter Ross for ticket #1054.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>