11 years agoProbetest, to test the demuxers probe functions against random and not so random
Michael Niedermayer [Tue, 15 Sep 2009 10:42:01 +0000 (10:42 +0000)]
Probetest, to test the demuxers probe functions against random and not so random

Originally committed as revision 19853 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSlightly stricter MPEG-PES probing, fixes issue 1383.
Reimar Döffinger [Tue, 15 Sep 2009 10:01:25 +0000 (10:01 +0000)]
Slightly stricter MPEG-PES probing, fixes issue 1383.

Originally committed as revision 19852 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoVastly improved mm_probe function, passes probetest.
Reimar Döffinger [Tue, 15 Sep 2009 09:21:29 +0000 (09:21 +0000)]
Vastly improved mm_probe function, passes probetest.

Originally committed as revision 19851 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoImprove sierravmd probe. It is still quite weak, but further improvements
Reimar Döffinger [Tue, 15 Sep 2009 09:16:29 +0000 (09:16 +0000)]
Improve sierravmd probe. It is still quite weak, but further improvements
are non-obvious and probably need a large (about 1kB at least) probe buffer.

Originally committed as revision 19850 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSlighty tweak mp3 probe threshold to prevent probetest from complaining.
Michael Niedermayer [Mon, 14 Sep 2009 23:03:33 +0000 (23:03 +0000)]
Slighty tweak mp3 probe threshold to prevent probetest from complaining.

Originally committed as revision 19849 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoTry harder to avoid false positives for DV probe.
Reimar Döffinger [Mon, 14 Sep 2009 22:03:07 +0000 (22:03 +0000)]
Try harder to avoid false positives for DV probe.
Require at least one signature match per provided 1MB of probe data,
and if there is only a single match, return at most MAX/4.
Fixes issue1382 but could/should probably still be improved.

Originally committed as revision 19848 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake dnxhd probe more strict, fail if we detect values in header that would
Reimar Döffinger [Mon, 14 Sep 2009 21:50:23 +0000 (21:50 +0000)]
Make dnxhd probe more strict, fail if we detect values in header that would
make our decoder fail anyway.
dnxhd probe now passes probetest.

Originally committed as revision 19847 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoARM: 10l: fix large FFTs
Måns Rullgård [Mon, 14 Sep 2009 21:37:41 +0000 (21:37 +0000)]
ARM: 10l: fix large FFTs

Originally committed as revision 19846 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRewrite h261_probe().
Michael Niedermayer [Mon, 14 Sep 2009 21:29:19 +0000 (21:29 +0000)]
Rewrite h261_probe().
New code can detect h261 startcodes even when the first is damaged or not at the
begin. It also passes probetest v2 & v3.

Originally committed as revision 19845 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake DTS probe more robust against false positives (as e.g. probetest shows).
Reimar Döffinger [Mon, 14 Sep 2009 20:28:10 +0000 (20:28 +0000)]
Make DTS probe more robust against false positives (as e.g. probetest shows).
In particular check that the detected markers clearly indicate a specific DTS
format (a wild mixture of e.g. little- and big-endian markers is unlikely to be
a valid DTS file) and ensure the markers appear with sufficient frequency.

Originally committed as revision 19844 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCheck the index validity more thoroughly for the c93 probe function.
Reimar Döffinger [Mon, 14 Sep 2009 20:01:32 +0000 (20:01 +0000)]
Check the index validity more thoroughly for the c93 probe function.
In particular, check that length of the first index entries is not 0 since
that is interpreted "end of file" and makes no sense in the very first entries.

Originally committed as revision 19843 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAdd more sanity checks for header elements, rejecting files with clearly
Reimar Döffinger [Mon, 14 Sep 2009 19:58:51 +0000 (19:58 +0000)]
Add more sanity checks for header elements, rejecting files with clearly
invalid values that wouldn't play right anyway and reduce probe score to MAX/2.
Passes probetest v2.

Originally committed as revision 19842 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRewrite h263_probe().
Michael Niedermayer [Mon, 14 Sep 2009 19:06:36 +0000 (19:06 +0000)]
Rewrite h263_probe().
The new code should detect h263 even if the first startcode is damaged or
somewhere else than the first byte. It also passes probetest v2 as just
posted on ffmpeg-dev.

Originally committed as revision 19841 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoExtend check for integer overflow for malloc argument to take into account
Reimar Döffinger [Mon, 14 Sep 2009 17:15:18 +0000 (17:15 +0000)]
Extend check for integer overflow for malloc argument to take into account
also the addition of "sound_buffers" not only the multiplication.

Originally committed as revision 19840 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix wrong logical operator which causes too relaxed checking in VC-1 test
Kostya Shishkov [Mon, 14 Sep 2009 17:05:13 +0000 (17:05 +0000)]
Fix wrong logical operator which causes too relaxed checking in VC-1 test
format probe.
Spotted by Reimar Döffinger.

Originally committed as revision 19839 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCheck buffer size for idcin check, otherwise false positives are too likely for
Reimar Döffinger [Mon, 14 Sep 2009 15:44:05 +0000 (15:44 +0000)]
Check buffer size for idcin check, otherwise false positives are too likely for
small probe buffer sizes due to 0-padding (see probetest results).

Originally committed as revision 19838 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoUpdate preset files to jive somewhat better with more recent x264 API.
Jason Garrett-Glaser [Mon, 14 Sep 2009 09:59:32 +0000 (09:59 +0000)]
Update preset files to jive somewhat better with more recent x264 API.

Originally committed as revision 19837 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoensure pes buffer is set to avoid segv
Baptiste Coudurier [Sun, 13 Sep 2009 20:08:47 +0000 (20:08 +0000)]
ensure pes buffer is set to avoid segv

Originally committed as revision 19836 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoreset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t
Baptiste Coudurier [Sun, 13 Sep 2009 20:06:49 +0000 (20:06 +0000)]
reset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t

Originally committed as revision 19835 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDo not release the AVFrame when using reget_buffer in flashsv.
Benjamin Larsson [Sun, 13 Sep 2009 19:17:02 +0000 (19:17 +0000)]
Do not release the AVFrame when using reget_buffer in flashsv.

Originally committed as revision 19834 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAdd condition to aea demuxer probe.
Benjamin Larsson [Sun, 13 Sep 2009 18:27:53 +0000 (18:27 +0000)]
Add condition to aea demuxer probe.

Originally committed as revision 19833 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCosmetics. Renames, indentation and spacing.
Benjamin Larsson [Sun, 13 Sep 2009 18:05:14 +0000 (18:05 +0000)]
Cosmetics. Renames, indentation and spacing.

Originally committed as revision 19832 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoReplace @node commands with @anchor to refer to specific points in the text.
Diego Biurrun [Sun, 13 Sep 2009 16:46:28 +0000 (16:46 +0000)]
Replace @node commands with @anchor to refer to specific points in the text.
This fixes the warnings
** `Developers Guide' is up for `Coding Rules', but has no menu entry for this node
** `Invocation' is up for `FFmpeg formula evaluator', but has no menu entry for this node

Originally committed as revision 19831 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoWhen resetting vst->pkt.data to NULL, also set vst->slices.
Reimar Döffinger [Sun, 13 Sep 2009 11:08:59 +0000 (11:08 +0000)]
When resetting vst->pkt.data to NULL, also set vst->slices.
This avoids a crash when the next slice is not a start slice and thus
pkt->data is still NULL.
This probably only happens with broken or unsupported files like
that need further fixes, but keeping vst state consistent is still a good idea.

Originally committed as revision 19830 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoUse I/O buffer size as initial value for backoff for seeking sync point search.
Ivan Schreter [Sun, 13 Sep 2009 08:57:30 +0000 (08:57 +0000)]
Use I/O buffer size as initial value for backoff for seeking sync point search.

Originally committed as revision 19829 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoReset slice direction at end of each frame.
Ramiro Polla [Sun, 13 Sep 2009 01:49:40 +0000 (01:49 +0000)]
Reset slice direction at end of each frame.

Originally committed as revision 29675 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoRemove ; after while(0) in macros.
Ramiro Polla [Sat, 12 Sep 2009 20:10:22 +0000 (20:10 +0000)]
Remove ; after while(0) in macros.

Originally committed as revision 29674 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoRemove ; after while(0) in macros.
Ramiro Polla [Sat, 12 Sep 2009 20:10:02 +0000 (20:10 +0000)]
Remove ; after while(0) in macros.

Originally committed as revision 19828 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoeval: Check for return value of memory allocations.
Ramiro Polla [Sat, 12 Sep 2009 17:59:19 +0000 (17:59 +0000)]
eval: Check for return value of memory allocations.

Originally committed as revision 19827 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCheck for return value of some context allocations.
Ramiro Polla [Sat, 12 Sep 2009 17:22:56 +0000 (17:22 +0000)]
Check for return value of some context allocations.

Originally committed as revision 19826 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDo not do free AVStream in case of error, this is not supposed to be
Vitor Sessak [Sat, 12 Sep 2009 16:23:13 +0000 (16:23 +0000)]
Do not do free AVStream in case of error, this is not supposed to be
done by the demuxer.

Fix issue 1378.

Originally committed as revision 19825 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove table that was forgotten in the split.
Benjamin Larsson [Fri, 11 Sep 2009 19:39:40 +0000 (19:39 +0000)]
Remove table that was forgotten in the split.

Originally committed as revision 19824 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix doxygen comment
Benjamin Larsson [Fri, 11 Sep 2009 19:38:26 +0000 (19:38 +0000)]
Fix doxygen comment

Originally committed as revision 19823 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoreinit get_bits for every decode_packet call
Sascha Sommer [Fri, 11 Sep 2009 15:59:27 +0000 (15:59 +0000)]
reinit get_bits for every decode_packet call

Originally committed as revision 19822 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake get_ur_golomb capable of reading 16 bit values.
Lars Täuber [Fri, 11 Sep 2009 06:25:36 +0000 (06:25 +0000)]
Make get_ur_golomb capable of reading 16 bit values.
Patch by Lars Täuber: firstname taeuber gmx net

Originally committed as revision 19821 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix a typo in the documentation.
Lars Täuber [Fri, 11 Sep 2009 06:20:05 +0000 (06:20 +0000)]
Fix a typo in the documentation.
Patch by Lars Täuber: firstname taeuber gmx net

Originally committed as revision 19820 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoARM: NEON optimised MDCT
Måns Rullgård [Fri, 11 Sep 2009 02:24:22 +0000 (02:24 +0000)]
ARM: NEON optimised MDCT

Originally committed as revision 19819 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoPrepare for optimised forward MDCT implementations
Måns Rullgård [Fri, 11 Sep 2009 02:24:19 +0000 (02:24 +0000)]
Prepare for optimised forward MDCT implementations

This adds a function pointer for forward MDCT to FFTContext and
initialises it with the existing C function.  ff_calc_mdct() is
changed to an inline function calling the selected version as
done for other fft/mdct functions.

Originally committed as revision 19818 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoARM: faster NEON IMDCT
Måns Rullgård [Fri, 11 Sep 2009 02:01:18 +0000 (02:01 +0000)]

Originally committed as revision 19817 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCosmetics, add spaces
Benjamin Larsson [Thu, 10 Sep 2009 19:12:13 +0000 (19:12 +0000)]
Cosmetics, add spaces

Originally committed as revision 19816 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMove get_arg to avoid future declaration of function when
Benjamin Larsson [Thu, 10 Sep 2009 19:08:03 +0000 (19:08 +0000)]
Move get_arg to avoid future declaration of function when
new code is added.

Originally committed as revision 19815 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoUse reget_buffer instead of get_buffer. Fixes issue1367.
Benjamin Larsson [Thu, 10 Sep 2009 19:01:53 +0000 (19:01 +0000)]
Use reget_buffer instead of get_buffer. Fixes issue1367.
Patch by jarkko.palviainen.sesca.com.

Originally committed as revision 19814 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoAdd ATRAC1 codec ID.
Benjamin Larsson [Thu, 10 Sep 2009 18:49:25 +0000 (18:49 +0000)]
Add ATRAC1 codec ID.

Originally committed as revision 19813 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoInitial commit of the MD studio demuxer, not hooked up yet
Benjamin Larsson [Thu, 10 Sep 2009 18:48:12 +0000 (18:48 +0000)]
Initial commit of the MD studio demuxer, not hooked up yet

Originally committed as revision 19812 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoInitial commit of the atrac1 decoder, not hooked up yet
Benjamin Larsson [Thu, 10 Sep 2009 18:47:02 +0000 (18:47 +0000)]
Initial commit of the atrac1 decoder, not hooked up yet

Originally committed as revision 19811 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove redundant code forgotten in the split
Benjamin Larsson [Thu, 10 Sep 2009 18:39:57 +0000 (18:39 +0000)]
Remove redundant code forgotten in the split

Originally committed as revision 19810 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCheck for thread_count==0.
Michael Niedermayer [Thu, 10 Sep 2009 14:12:05 +0000 (14:12 +0000)]
Check for thread_count==0.
fixed issue1333

Originally committed as revision 19809 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSimplify: reget_buffer behaves exactly like get_buffer if the buffer was
Reimar Döffinger [Thu, 10 Sep 2009 12:23:45 +0000 (12:23 +0000)]
Simplify: reget_buffer behaves exactly like get_buffer if the buffer was
previously released, so no extra condition is necessary.

Originally committed as revision 19808 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix typo: '.' was used instead of '/' as directory separator.
Diego Biurrun [Thu, 10 Sep 2009 09:30:57 +0000 (09:30 +0000)]
Fix typo: '.' was used instead of '/' as directory separator.

Originally committed as revision 19807 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoARM: NEON optimised FFT and MDCT
Måns Rullgård [Thu, 10 Sep 2009 08:50:03 +0000 (08:50 +0000)]
ARM: NEON optimised FFT and MDCT

Vorbis and AC3 ~3x faster.

Parts by Naotoshi Nojiri, naonoj gmail

Originally committed as revision 19806 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDCA: move an aligned array from stack to context
Måns Rullgård [Thu, 10 Sep 2009 08:49:59 +0000 (08:49 +0000)]
DCA: move an aligned array from stack to context

Originally committed as revision 19805 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoconfigure: add -g to ASFLAGS when debug is enabled
Måns Rullgård [Thu, 10 Sep 2009 02:42:19 +0000 (02:42 +0000)]
configure: add -g to ASFLAGS when debug is enabled

Originally committed as revision 19804 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix typo in configure error message.
Reimar Döffinger [Wed, 9 Sep 2009 23:07:00 +0000 (23:07 +0000)]
Fix typo in configure error message.

Originally committed as revision 19803 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDocument padding for AVProbeData.
shinya.tesutosan@hotmail.com [Wed, 9 Sep 2009 22:55:10 +0000 (22:55 +0000)]
Document padding for AVProbeData.

Patch by roundup user shinya, tesutosan hotmail

Originally committed as revision 19802 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCheck thread count as multithreaded decoding is not supported.
Michael Niedermayer [Wed, 9 Sep 2009 21:44:48 +0000 (21:44 +0000)]
Check thread count as multithreaded decoding is not supported.
Fixes issue1292

Originally committed as revision 19801 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoDocument that slices can be bottom to top or top to bottom.
Ramiro Polla [Wed, 9 Sep 2009 21:43:25 +0000 (21:43 +0000)]
Document that slices can be bottom to top or top to bottom.

Originally committed as revision 29665 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoAdd warnings to av_strlcat and av_strlcpy doxygen that the input strings
Reimar Döffinger [Wed, 9 Sep 2009 21:00:51 +0000 (21:00 +0000)]
Add warnings to av_strlcat and av_strlcpy doxygen that the input strings
already must be properly 0-terminated strings. Unlike strncpy it
cannot be used on raw data read from a file.

Originally committed as revision 19800 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoChange developer doc to reflect reality
Benjamin Larsson [Wed, 9 Sep 2009 17:27:30 +0000 (17:27 +0000)]
Change developer doc to reflect reality

Originally committed as revision 19799 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFix a bug with reading non-interleaved AVI if one the streams is
Maksym Veremeyenko [Wed, 9 Sep 2009 16:26:24 +0000 (16:26 +0000)]
Fix a bug with reading non-interleaved AVI if one the streams is

Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19798 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoFactorise st->nb_index_entries check.
Maksym Veremeyenko [Wed, 9 Sep 2009 16:25:12 +0000 (16:25 +0000)]
Factorise st->nb_index_entries check.

Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19797 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSplit out common routines needed in the atrac1 decoder from atrac3.c to atrac.c.
Benjamin Larsson [Tue, 8 Sep 2009 19:25:54 +0000 (19:25 +0000)]
Split out common routines needed in the atrac1 decoder from atrac3.c to atrac.c.

Originally committed as revision 19796 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove pointless debug statement that fails to compile.
Diego Biurrun [Tue, 8 Sep 2009 09:11:56 +0000 (09:11 +0000)]
Remove pointless debug statement that fails to compile.

Originally committed as revision 19795 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoTry to clarify that anyone using get_bits must check for buffer overrun
Reimar Döffinger [Tue, 8 Sep 2009 08:30:56 +0000 (08:30 +0000)]
Try to clarify that anyone using get_bits must check for buffer overrun
themselves, get_bits does not do anything in that regard.

Originally committed as revision 19794 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocheck entries against field_size, potential malloc overflow in read_stsz, fix #1357
Baptiste Coudurier [Mon, 7 Sep 2009 22:42:51 +0000 (22:42 +0000)]
check entries against field_size, potential malloc overflow in read_stsz, fix #1357

Originally committed as revision 19793 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoadd one missing check for stream existence in read_elst, fix #1364
Baptiste Coudurier [Mon, 7 Sep 2009 22:36:33 +0000 (22:36 +0000)]
add one missing check for stream existence in read_elst, fix #1364

Originally committed as revision 19792 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoIndent.
Ramiro Polla [Mon, 7 Sep 2009 16:29:32 +0000 (16:29 +0000)]

Originally committed as revision 29654 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoUse all 32 bits of the timestamp when calculating flv duration.
Martin Storsjö [Mon, 7 Sep 2009 10:49:51 +0000 (10:49 +0000)]
Use all 32 bits of the timestamp when calculating flv duration.
At the moment, duration is mainly set from the metadata packet. If that is not
available, the fallback is checking the low 24 bits of the last packet. This is
not enough for files over 4,6 hours in length, so read all 32 bits instead.
patch by Martin Storsjö, martin martin st

Originally committed as revision 19791 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoCosmetics: Fix typo.
Carl Eugen Hoyos [Sun, 6 Sep 2009 18:24:25 +0000 (18:24 +0000)]
Cosmetics: Fix typo.

Originally committed as revision 19790 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMark all pix_fmts and supported_framerates compound literals as const.
Reimar Döffinger [Sun, 6 Sep 2009 16:09:21 +0000 (16:09 +0000)]
Mark all pix_fmts and supported_framerates compound literals as const.
Makes no difference for gcc but at least icc can put them in .rodata then.

Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agodisable new seeking code in mpeg-ts per #ifdef (use old read_seek by default)
Ivan Schreter [Sun, 6 Sep 2009 15:59:32 +0000 (15:59 +0000)]
disable new seeking code in mpeg-ts per #ifdef (use old read_seek by default)

Originally committed as revision 19788 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake sample_fmts and channel_layouts compound literals const to reduce size of
Reimar Döffinger [Sun, 6 Sep 2009 09:15:07 +0000 (09:15 +0000)]
Make sample_fmts and channel_layouts compound literals const to reduce size of
.data section.

Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoff_rm_metadata is const.
Reimar Döffinger [Sun, 6 Sep 2009 08:57:19 +0000 (08:57 +0000)]
ff_rm_metadata is const.

Originally committed as revision 19786 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoff_sine_windows table contains only constant data, too.
Reimar Döffinger [Sun, 6 Sep 2009 08:56:10 +0000 (08:56 +0000)]
ff_sine_windows table contains only constant data, too.

Originally committed as revision 19785 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoThe ff_cos_tabs table itself is constant, too, so mark it as such.
Reimar Döffinger [Sun, 6 Sep 2009 08:53:14 +0000 (08:53 +0000)]
The ff_cos_tabs table itself is constant, too, so mark it as such.

Originally committed as revision 19784 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoThe pointers in ff_sin_tabs themselves are constant, so mark them accordingly.
Reimar Döffinger [Sun, 6 Sep 2009 08:50:20 +0000 (08:50 +0000)]
The pointers in ff_sin_tabs themselves are constant, so mark them accordingly.

Originally committed as revision 19783 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoff_swb_offset_* tables should be const.
Reimar Döffinger [Sun, 6 Sep 2009 08:48:45 +0000 (08:48 +0000)]
ff_swb_offset_* tables should be const.

Originally committed as revision 19782 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoff_id3v1_genre_str table should be const.
Reimar Döffinger [Sun, 6 Sep 2009 08:39:41 +0000 (08:39 +0000)]
ff_id3v1_genre_str table should be const.

Originally committed as revision 19781 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years ago100l, all avlanguage tables should be both static and const.
Reimar Döffinger [Sun, 6 Sep 2009 08:36:25 +0000 (08:36 +0000)]
100l, all avlanguage tables should be both static and const.

Originally committed as revision 19780 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocompatible_frame array can be static const, too.
Reimar Döffinger [Sun, 6 Sep 2009 08:27:23 +0000 (08:27 +0000)]
compatible_frame array can be static const, too.

Originally committed as revision 19779 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agodo not decode more than one audio frame in a decode packet call
Sascha Sommer [Sun, 6 Sep 2009 08:16:26 +0000 (08:16 +0000)]
do not decode more than one audio frame in a decode packet call

Originally committed as revision 19778 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoavoid extra memcpy during scale factor decoding
Sascha Sommer [Sun, 6 Sep 2009 06:56:25 +0000 (06:56 +0000)]
avoid extra memcpy during scale factor decoding

Originally committed as revision 19777 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
Ramiro Polla [Sun, 6 Sep 2009 00:08:19 +0000 (00:08 +0000)]
Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label

Originally committed as revision 19776 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
Ramiro Polla [Sun, 6 Sep 2009 00:07:35 +0000 (00:07 +0000)]
Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label

Originally committed as revision 29652 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoIndent.
Ramiro Polla [Sat, 5 Sep 2009 23:35:59 +0000 (23:35 +0000)]

Originally committed as revision 29651 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoMake 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Lars Täuber [Sat, 5 Sep 2009 23:33:25 +0000 (23:33 +0000)]
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.

Originally committed as revision 19775 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Lars Täuber [Sat, 5 Sep 2009 23:33:11 +0000 (23:33 +0000)]
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.

Originally committed as revision 29650 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

11 years agoUse memcpy to copy till end of line in one go instead of copying pixel by pixel
Reimar Döffinger [Sat, 5 Sep 2009 19:35:59 +0000 (19:35 +0000)]
Use memcpy to copy till end of line in one go instead of copying pixel by pixel
in xan_wc3_output_pixel_run and xan_wc3_copy_pixel_run

Originally committed as revision 19774 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agocosmetic changes (indentation, doxygen comments, braces, put structures for API to...
Ivan Schreter [Sat, 5 Sep 2009 19:31:01 +0000 (19:31 +0000)]
cosmetic changes (indentation, doxygen comments, braces, put structures for API to header, ...)

Originally committed as revision 19773 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSlightly simplify detection of end of compressed data in xan_unpack
Reimar Döffinger [Sat, 5 Sep 2009 19:14:44 +0000 (19:14 +0000)]
Slightly simplify detection of end of compressed data in xan_unpack

Originally committed as revision 19772 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoMake vp3 arrays static const where possible.
Reimar Döffinger [Sat, 5 Sep 2009 17:28:20 +0000 (17:28 +0000)]
Make vp3 arrays static const where possible.

Originally committed as revision 19771 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove useless ulti_decode_end function.
Reimar Döffinger [Sat, 5 Sep 2009 16:41:20 +0000 (16:41 +0000)]
Remove useless ulti_decode_end function.

Originally committed as revision 19770 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoSearch for ipmovie signature beyond the start of the file.
Reimar Döffinger [Sat, 5 Sep 2009 15:41:32 +0000 (15:41 +0000)]
Search for ipmovie signature beyond the start of the file.
This allows to play directly files that combine player and movie into
a single executable like http://samples.mplayerhq.hu/game-formats/interplay-mve/DES3S.EXE

Originally committed as revision 19769 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoExtend ipmovie signature to match exactly one place in mve files that have a
Reimar Döffinger [Sat, 5 Sep 2009 11:30:55 +0000 (11:30 +0000)]
Extend ipmovie signature to match exactly one place in mve files that have a
player binary prepended.

Originally committed as revision 19768 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoprettyprinting cosmetics
Diego Biurrun [Sat, 5 Sep 2009 11:22:36 +0000 (11:22 +0000)]
prettyprinting cosmetics

Originally committed as revision 19767 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agofix handling of packet loss when the output buffer is full
Sascha Sommer [Sat, 5 Sep 2009 10:59:09 +0000 (10:59 +0000)]
fix handling of packet loss when the output buffer is full

Originally committed as revision 19766 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoreindent
Sascha Sommer [Sat, 5 Sep 2009 10:18:23 +0000 (10:18 +0000)]

Originally committed as revision 19765 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoremove no longer needed debug output
Sascha Sommer [Sat, 5 Sep 2009 10:11:04 +0000 (10:11 +0000)]
remove no longer needed debug output

Originally committed as revision 19764 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoreduce output buffer needs
Sascha Sommer [Sat, 5 Sep 2009 10:07:55 +0000 (10:07 +0000)]
reduce output buffer needs
(fixes playback of some multichannel files)

Originally committed as revision 19763 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agostore packet GetBitContext in the decoder context
Sascha Sommer [Sat, 5 Sep 2009 09:56:06 +0000 (09:56 +0000)]
store packet GetBitContext in the decoder context

Originally committed as revision 19762 to svn://svn.ffmpeg.org/ffmpeg/trunk

11 years agoRemove fake Speex header creation from FLV demuxer. Having it there was not the
Justin Ruggles [Fri, 4 Sep 2009 21:43:41 +0000 (21:43 +0000)]
Remove fake Speex header creation from FLV demuxer.  Having it there was not the
correct solution to the problem.  A better solution might be possible later once
Speex is supported in muxers.

Originally committed as revision 19761 to svn://svn.ffmpeg.org/ffmpeg/trunk