Increase max resync size, fix demuxing of dvgrab-2009.03.28_19-07-22.m2t
Print error when max resync size is reached and return EAGAIN instead of
INVALIDDATA, so user can retry if wanted.
Originally committed as revision 20286 to svn://svn.ffmpeg.org/ffmpeg/trunk
Smarten mtv's probe a bit. Check for non zero
on bpp and width|height header fields. This
change is among the ones suggested by Vitor
Sessak in his '[FFmpeg-devel] [PATCH] Improve
MTV probe' thread.
Originally committed as revision 20283 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Sun, 18 Oct 2009 16:33:14 +0000 (16:33 +0000)]
Replace seek test error return numbers by the corresponding E* strings.
Hopefully this fixes regression tests on DOS.
It breaks alignment of the output a bit more, but this should be easy to
fix with a second patch.
Originally committed as revision 20282 to svn://svn.ffmpeg.org/ffmpeg/trunk
Onur Küçük [Sun, 18 Oct 2009 14:34:45 +0000 (14:34 +0000)]
Fix typo that mistakenly slipped into previous commit:
CONFIG_MPEG_XVMC_DECODER was changed to CONFIG_MPEGVIDEO_XVMC_DECODER.
patch by Onur Küçük, onur delipenguen net
Originally committed as revision 20278 to svn://svn.ffmpeg.org/ffmpeg/trunk
Stefano Sabatini [Sun, 18 Oct 2009 08:16:18 +0000 (08:16 +0000)]
Make avfilter_get_video_buffer() recursive.
When called on a link with a filter whose destination pad has not a
get_video_buffer callback defined, it will call
avfilter_get_video_buffer() on the first output link of the
destination filer, rather than use avfilter_default_get_buffer(), so
the video buffer can be allocated forward in the filterchain.
Also add the w and h parameters to avfilter_get_video_buffer(), as the
minimum width and height requested by each filter in the filterchain
may change, this allows for example a memcpy-less pad filter.
This change breaks API / ABI backward compatibility.
See the thread:
"[PATCH] Implement recusive avfilter_get_video_buffer()".
Originally committed as revision 20272 to svn://svn.ffmpeg.org/ffmpeg/trunk
Justin Ruggles [Sat, 17 Oct 2009 21:00:39 +0000 (21:00 +0000)]
Move autocorrelation function from flacenc.c to lpc.c. Also rename the
corresponding dsputil functions and remove their dependency on the FLAC
encoder.
Fixes Issue1486.
Originally committed as revision 20266 to svn://svn.ffmpeg.org/ffmpeg/trunk
Revert r20249, it seems the union trick works everywhere
Original commit message:
Very evil missuse of svn to test if AVOption and AVOption2 are compatible.
If this test triggers anywhere for anyone, revert this commit immedeatly.
Ill revert this in a day or 2, its just so we know beforehand if the idea
with the union is doable or not without breaking ABI/API.
Originally committed as revision 20264 to svn://svn.ffmpeg.org/ffmpeg/trunk
Ramiro Polla [Fri, 16 Oct 2009 16:10:00 +0000 (16:10 +0000)]
mlp: Only initialize VLC tables once. This caused a crash when multiple
instances of the decoder were started at different times.
Bug reported by Maxim Anisiutkin.
Originally committed as revision 20254 to svn://svn.ffmpeg.org/ffmpeg/trunk
Very evil missuse of svn to test if AVOption and AVOption2 are compatible.
If this test triggers anywhere for anyone, revert this commit immedeatly.
Ill revert this in a day or 2, its just so we know beforehand if the idea
with the union is doable or not without breaking ABI/API.
Originally committed as revision 20249 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Fri, 16 Oct 2009 07:55:57 +0000 (07:55 +0000)]
Split parts of dvdata.h into dvdata.c, this ensures that things like
work_chunks_* and dv_idct_factor_* variables appear only once in the binary
instead of 3 times.
Saves 3264 bytes in .rodata and 312416 bytes in .bss on x86_64.
Originally committed as revision 20246 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Thu, 15 Oct 2009 11:50:32 +0000 (11:50 +0000)]
Do not initialize ff_cos_* tables again in rdft_init, they are already
initialized by ff_fft_init and using different code can result in slightly
different values, in addition it crashes when the tables are hardcoded.
On amd64 this slightly changes qdm2 output.
Originally committed as revision 20237 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Thu, 15 Oct 2009 06:59:23 +0000 (06:59 +0000)]
Use cbrtf and exp2f instead of pow to calculate tables for MPEG audio decoding.
This hopefully is fast enough so that it is reasonable to use the same formula
directly instead of the table for CONFIG_SMALL.
Originally committed as revision 20233 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Wed, 14 Oct 2009 21:41:24 +0000 (21:41 +0000)]
Use hardcoded instead of runtime-calculated ff_cos_* tables if
--enable-hardcoded-tables was used.
Due to the size, the code for the tables is generated at compile time.
Originally committed as revision 20232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Tue, 13 Oct 2009 20:48:51 +0000 (20:48 +0000)]
Print a warning message when avcodec_default_free_buffers finds unreleased
buffers, this hopefully should help detect codecs that do not release all
buffers e.g. in the decode_end function.
Originally committed as revision 20230 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Tue, 13 Oct 2009 08:08:10 +0000 (08:08 +0000)]
MXF: simply ignore tracks that are invalid due to not having a valid Sequence
part instead of failing completely.
This partly fixes issue 1470 (broken files created by BBC ingex recorder).
Originally committed as revision 20221 to svn://svn.ffmpeg.org/ffmpeg/trunk
Justin Ruggles [Mon, 12 Oct 2009 21:30:03 +0000 (21:30 +0000)]
Calculate correct packet durations when demuxing Ogg/Speex. This involves
determining if there is any delay in the first packet and/or any truncation in
the final packet.
Originally committed as revision 20216 to svn://svn.ffmpeg.org/ffmpeg/trunk
Sascha Sommer [Mon, 12 Oct 2009 19:50:31 +0000 (19:50 +0000)]
extend description of avcodec_decode_audio3:
- clarify when 0 is returned
- explain that decode_audio3 has to be called multiple times when there
are multiple frames in a single packet
Originally committed as revision 20215 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Mon, 12 Oct 2009 14:43:57 +0000 (14:43 +0000)]
Move dnxhdenc to execute2 multithreading API.
This allows for some simplifications like removing some outer loops
and gives much better performance for thread_count > number of idle CPUs.
Originally committed as revision 20211 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Mon, 12 Oct 2009 11:35:35 +0000 (11:35 +0000)]
Add an execute2 function that is more flexible and allows to use parallel
processing with jobs > threads without wasting too much memory.
It also avoids needing a separate int array when the only additional data
the jobs needs is a single int running from 0 to count-1.
Originally committed as revision 20210 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård [Sun, 11 Oct 2009 10:15:45 +0000 (10:15 +0000)]
ARM: enable PIC for shared libs
Recent versions of gcc generate movw/movt pairs, and the linkers fail
to handle the associated relocations properly. Those responsible at
Codesourcery have refused to consider fixing this. Blame them for
making shared libraries slower than they need to be.
Originally committed as revision 20203 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger [Sat, 10 Oct 2009 14:43:31 +0000 (14:43 +0000)]
Hack: set the coded frame PTS to the incoming PTS.
This is not correct, but libtheora does not seem to provide a way
to get the correct value, and this is necessary to make encoding
produce sensible time stamps when encoded content is variable
FPS or the time base is simply different from FPS.
Somewhat fixes issue 1197.
Originally committed as revision 20199 to svn://svn.ffmpeg.org/ffmpeg/trunk
Robert Swain [Fri, 9 Oct 2009 15:38:44 +0000 (15:38 +0000)]
AAC: Fix regression introduced in r20067 where ADTS files would always be
signalled as having a channel configuration of 1 in output_configure().
Previously this didn't matter but it does now.
Originally committed as revision 20193 to svn://svn.ffmpeg.org/ffmpeg/trunk