ffmpeg.git
11 years agoAdd a newline in error message in CHECKED_ALLOC(Z).
Ramiro Polla [Fri, 4 Sep 2009 16:59:28 +0000 (16:59 +0000)]
Add a newline in error message in CHECKED_ALLOC(Z).

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

11 years agoIndent.
Ramiro Polla [Fri, 4 Sep 2009 16:32:06 +0000 (16:32 +0000)]
Indent.

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

11 years agoUse if(0){} instead of #if 0 to prevent debug code to rot.
Ramiro Polla [Fri, 4 Sep 2009 16:31:21 +0000 (16:31 +0000)]
Use if(0){} instead of #if 0 to prevent debug code to rot.

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

11 years agolibspeex: Do not set AVCodecContext.frame_size in decoder init if there is no
Justin Ruggles [Fri, 4 Sep 2009 00:57:20 +0000 (00:57 +0000)]
libspeex: Do not set AVCodecContext.frame_size in decoder init if there is no
header in extradata since the default value will be incorrect for multiple
frames per packet.

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

11 years agoconfigure: fix check for x264
Måns Rullgård [Wed, 2 Sep 2009 22:53:31 +0000 (22:53 +0000)]
configure: fix check for x264

libx264 recently started mangling the name of x264_encoder_open() to
prevent version mismatches, breaking our test.  Checking for another
function instead makes it work again.

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

11 years agocosmetics: indentation and other prettyprinting fixes
Diego Biurrun [Wed, 2 Sep 2009 18:03:13 +0000 (18:03 +0000)]
cosmetics: indentation and other prettyprinting fixes

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

11 years agoadd missing wmapro decoder parts
Sascha Sommer [Wed, 2 Sep 2009 16:41:49 +0000 (16:41 +0000)]
add missing wmapro decoder parts

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

11 years agowhitespace cosmetics, prettyprinting
Diego Biurrun [Tue, 1 Sep 2009 16:00:45 +0000 (16:00 +0000)]
whitespace cosmetics, prettyprinting

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

11 years agoUpdate ffv1 codec long name in the documentation as well.
Diego Biurrun [Mon, 31 Aug 2009 05:48:17 +0000 (05:48 +0000)]
Update ffv1 codec long name in the documentation as well.

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

11 years agoUse "FFmpeg video codec #1" instead of "FFmpeg codec #1" as codec long name.
Lars Täuber [Sun, 30 Aug 2009 21:19:37 +0000 (21:19 +0000)]
Use "FFmpeg video codec #1" instead of "FFmpeg codec #1" as codec long name.
patch by  Lars Täuber, lars.taeuber gmx net

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

11 years agoFix incorrect display of ASF/WMV duration after r12926.
Josh Harris [Sun, 30 Aug 2009 18:14:22 +0000 (18:14 +0000)]
Fix incorrect display of ASF/WMV duration after r12926.

Patch by Josh Harris, qt tateu net

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

11 years agoAdd function to compute ceil(log2(x)).
Thilo Borgmann [Sun, 30 Aug 2009 15:50:03 +0000 (15:50 +0000)]
Add function to compute ceil(log2(x)).
Patch by Thilo Borgmann <thilo.borgmann _at_ googlemail.com>

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

11 years agoConvert ZERO8x2 macro into inline function
Kostya Shishkov [Sun, 30 Aug 2009 10:54:16 +0000 (10:54 +0000)]
Convert ZERO8x2 macro into inline function

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

11 years agoRemove unused variable.
Reimar Döffinger [Sun, 30 Aug 2009 08:29:11 +0000 (08:29 +0000)]
Remove unused variable.

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

11 years agoZeroing pic->motion_val in RV3/4 causes alignment problems on some 64-bit
Kostya Shishkov [Sun, 30 Aug 2009 06:30:53 +0000 (06:30 +0000)]
Zeroing pic->motion_val in RV3/4 causes alignment problems on some 64-bit
architectures since stride is multiple of 4 and not of 8, so split
fill_rectangle() calls to operate on 32-bit words instead of 64-bit ones.

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

11 years agoAdjust r->avail_cache[] indexes to avoid alignment issues when zeroing block
Kostya Shishkov [Sun, 30 Aug 2009 06:16:33 +0000 (06:16 +0000)]
Adjust r->avail_cache[] indexes to avoid alignment issues when zeroing block
inside it.

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

11 years agoCurly brackets cosmetics for previous commit.
Ramiro Polla [Sat, 29 Aug 2009 23:08:32 +0000 (23:08 +0000)]
Curly brackets cosmetics for previous commit.

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

11 years agoCheck for return value of initFilter().
Ramiro Polla [Sat, 29 Aug 2009 23:06:22 +0000 (23:06 +0000)]
Check for return value of initFilter().

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

11 years agoRevert mistakenly commited hunk.
Ramiro Polla [Sat, 29 Aug 2009 23:03:14 +0000 (23:03 +0000)]
Revert mistakenly commited hunk.

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

11 years agoswscale: Check for return values of malloc.
Ramiro Polla [Sat, 29 Aug 2009 23:02:01 +0000 (23:02 +0000)]
swscale: Check for return values of malloc.

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

11 years agoAdd CHECKED_ALLOC macro.
Ramiro Polla [Sat, 29 Aug 2009 22:38:48 +0000 (22:38 +0000)]
Add CHECKED_ALLOC macro.
It works the same as CHECKED_ALLOCZ except that it does not zero the allocated
memory.

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

11 years agoStore the frame size in the LibSpeexContext in case the header does not exist.
Justin Ruggles [Sat, 29 Aug 2009 21:04:18 +0000 (21:04 +0000)]
Store the frame size in the LibSpeexContext in case the header does not exist.

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

11 years agoOne declaration of mm_flags is enough
Måns Rullgård [Sat, 29 Aug 2009 16:55:55 +0000 (16:55 +0000)]
One declaration of mm_flags is enough

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

11 years agoMove declarations of some mmx functions to dsputil_mmx.h
Måns Rullgård [Sat, 29 Aug 2009 16:55:50 +0000 (16:55 +0000)]
Move declarations of some mmx functions to dsputil_mmx.h

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

11 years agoMove DECLARE_ALIGNED_8 definition next to DECLARE_ALIGNED_16
Måns Rullgård [Sat, 29 Aug 2009 16:55:46 +0000 (16:55 +0000)]
Move DECLARE_ALIGNED_8 definition next to DECLARE_ALIGNED_16

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

11 years agoswscale-example: Free memory used by input data.
Ramiro Polla [Sat, 29 Aug 2009 03:36:09 +0000 (03:36 +0000)]
swscale-example: Free memory used by input data.

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

11 years agoRestore comment that was partially removed.
Ramiro Polla [Sat, 29 Aug 2009 02:44:03 +0000 (02:44 +0000)]
Restore comment that was partially removed.

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

11 years agoMake DECLARE_ALIGNED_8 align to 8 bytes, never to 16
Måns Rullgård [Fri, 28 Aug 2009 23:39:02 +0000 (23:39 +0000)]
Make DECLARE_ALIGNED_8 align to 8 bytes, never to 16

The DECLARE_ALIGNED_8 macro is defined to align to 16 bytes instead
the 8 suggested by the name on some CPUs.  None of the uses of this
macro ever need 16-byte alignment, cases which once did having been
changed to always specify 16 bytes explicitly.

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

11 years agoUse the output data type to determine the maximum number of samples that can be
Justin Ruggles [Fri, 28 Aug 2009 00:57:00 +0000 (00:57 +0000)]
Use the output data type to determine the maximum number of samples that can be
decoded.

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

11 years agoAdd myself as maintainer for libspeexdec.c
Justin Ruggles [Fri, 28 Aug 2009 00:46:19 +0000 (00:46 +0000)]
Add myself as maintainer for libspeexdec.c

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

11 years agoModify the Ogg/Speex demuxer and the libspeex decoder so that they always treat
Justin Ruggles [Fri, 28 Aug 2009 00:44:54 +0000 (00:44 +0000)]
Modify the Ogg/Speex demuxer and the libspeex decoder so that they always treat
a packet of Speex frames as a single frame.

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

11 years agoRe-add search_for_ms to the coefficients encoders to silence warnings
Alex Converse [Thu, 27 Aug 2009 17:46:13 +0000 (17:46 +0000)]
Re-add search_for_ms to the coefficients encoders to silence warnings

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

11 years agoFormatting K&R fixes
Vitor Sessak [Thu, 27 Aug 2009 16:38:57 +0000 (16:38 +0000)]
Formatting K&R fixes

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

11 years agoMark "i" parameter of vector_clipf_sse() as early-clobber
Vitor Sessak [Thu, 27 Aug 2009 15:52:44 +0000 (15:52 +0000)]
Mark "i" parameter of vector_clipf_sse() as early-clobber

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

11 years ago100l, revision 19728 added a bug that broke twinvq decoding. I forgot to
Vitor Sessak [Thu, 27 Aug 2009 15:49:05 +0000 (15:49 +0000)]
100l, revision 19728 added a bug that broke twinvq decoding. I forgot to
multiply the buffer size by the number of channels.

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

11 years agoMark parameter src of vector_clipf() as const
Vitor Sessak [Thu, 27 Aug 2009 15:38:59 +0000 (15:38 +0000)]
Mark parameter src of vector_clipf() as const

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

11 years agoSSE optimized vector_clipf(). 10% faster TwinVQ decoding.
Vitor Sessak [Thu, 27 Aug 2009 14:49:36 +0000 (14:49 +0000)]
SSE optimized vector_clipf(). 10% faster TwinVQ decoding.

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

11 years agoindent
Loren Merritt [Thu, 27 Aug 2009 13:41:29 +0000 (13:41 +0000)]
indent

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

11 years ago1.5x faster ff_vorbis_floor1_render_list, 5% faster vorbis decoding on Core2.
Loren Merritt [Thu, 27 Aug 2009 13:41:11 +0000 (13:41 +0000)]
1.5x faster ff_vorbis_floor1_render_list, 5% faster vorbis decoding on Core2.
1.3x and 3% on G4.
Though I think only part of this speedup is due to my optimizations per se;
some of it is that I got a better roll on the GCC random code generator.
Trivial reorderings of this function have a disproportionate effect on speed.

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

11 years agowhitespace cosmetics
Diego Biurrun [Wed, 26 Aug 2009 23:12:41 +0000 (23:12 +0000)]
whitespace cosmetics

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

11 years agoRemove useless alignment from MpegEncContext.intra_scantable
Måns Rullgård [Wed, 26 Aug 2009 23:07:07 +0000 (23:07 +0000)]
Remove useless alignment from MpegEncContext.intra_scantable

The first member of struct ScanTable is a simple pointer, extra alignment
of which serves no purpose.  The alignment specifier was added along with
some Altivec optimisations also adding a 16-byte-aligned array at the end
of struct ScanTable.  Presumably the redundant, outer alignment was added
by mistake.  The inner one is clearly sufficient.

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

11 years agoCosmetic changes in read_seek* routines.
Ivan Schreter [Wed, 26 Aug 2009 22:33:48 +0000 (22:33 +0000)]
Cosmetic changes in read_seek* routines.

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

11 years agoDecoder for LPCM as used in Bluray discs.
Christian Schmidt [Wed, 26 Aug 2009 22:10:35 +0000 (22:10 +0000)]
Decoder for LPCM as used in Bluray discs.

Patch by Christian Schmidt, schmidt digadd de

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

11 years agoFix comments after switching from CABAC to range coder in r3658.
Lars Täuber [Wed, 26 Aug 2009 21:25:43 +0000 (21:25 +0000)]
Fix comments after switching from CABAC to range coder in r3658.

Patch by Lars Täuber, lars D taeuber A gmx D net

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

11 years agoadd decode_coeffs()
Sascha Sommer [Wed, 26 Aug 2009 21:23:21 +0000 (21:23 +0000)]
add decode_coeffs()

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

11 years agomerge 2-channel M/S stereo decoding code with the multichannel version
Sascha Sommer [Wed, 26 Aug 2009 21:18:54 +0000 (21:18 +0000)]
merge 2-channel M/S stereo decoding code with the multichannel version

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

11 years ago4xm: provide 16-byte alignment where required
Måns Rullgård [Wed, 26 Aug 2009 15:22:15 +0000 (15:22 +0000)]
4xm: provide 16-byte alignment where required

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

11 years agodsputil: declare some arrays 16-byte aligned
Måns Rullgård [Wed, 26 Aug 2009 13:17:06 +0000 (13:17 +0000)]
dsputil: declare some arrays 16-byte aligned

These arrays are passed to functions for which we promise 16-byte
alignment, so make sure we fulfil that promise.

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

11 years agoRemove some unnecessary alignment specifiers
Måns Rullgård [Wed, 26 Aug 2009 12:12:40 +0000 (12:12 +0000)]
Remove some unnecessary alignment specifiers

None of these arrays are used in ways requiring extra alignment.

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

11 years agoAlways allocate a buffer of AVPALETTE_SIZE for palette in the
Stephen Backway [Wed, 26 Aug 2009 11:31:37 +0000 (11:31 +0000)]
Always allocate a buffer of AVPALETTE_SIZE for palette in the
Bluray subtitle decoder instead of as small as possible.
This avoids completely unnecessary issues with e.g. libswscale.
(See r19673)

Patch by Stephen Backway, stev391 A exemail D com D au

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

11 years agoIncrease maximum encoded subtitle size from 64 kB to 1 MB.
Reimar Döffinger [Wed, 26 Aug 2009 10:22:27 +0000 (10:22 +0000)]
Increase maximum encoded subtitle size from 64 kB to 1 MB.
Fixes "dvd_subtitle too big" errors when encoding HD video subtitles
to DVD format.

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

11 years ago100l typo, xsub encoder printed end time hours where minutes should have been.
Reimar Döffinger [Wed, 26 Aug 2009 10:08:00 +0000 (10:08 +0000)]
100l typo, xsub encoder printed end time hours where minutes should have been.

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

11 years ago100l, inv_zigzag_direct16 must be aligned to 16 bytes for dct_quantize_SSE2
Reimar Döffinger [Wed, 26 Aug 2009 09:10:51 +0000 (09:10 +0000)]
100l, inv_zigzag_direct16 must be aligned to 16 bytes for dct_quantize_SSE2
(which uses movdqa to xmm1 on inv_zigzag_direct16).

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

11 years agoMake sure that start_display_time is 0 by moving its value onto pts.
Reimar Döffinger [Wed, 26 Aug 2009 08:43:11 +0000 (08:43 +0000)]
Make sure that start_display_time is 0 by moving its value onto pts.
If it was not 0, subtitle encoding would fail.

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

11 years agoCheck for seek failures in avi_load_index, otherwise if the index offset
Reimar Döffinger [Wed, 26 Aug 2009 08:38:44 +0000 (08:38 +0000)]
Check for seek failures in avi_load_index, otherwise if the index offset
is invalid (e.g. truncated file) we might end up reading the whole file
since trying to seek beyond the end of file does not set EOF.

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

11 years agoReindent.
Reimar Döffinger [Wed, 26 Aug 2009 01:29:10 +0000 (01:29 +0000)]
Reindent.

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

11 years agoRemove now dead code.
Reimar Döffinger [Wed, 26 Aug 2009 01:28:41 +0000 (01:28 +0000)]
Remove now dead code.

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

11 years agoApply r19642 also pgssubdec:
Reimar Döffinger [Wed, 26 Aug 2009 01:27:58 +0000 (01:27 +0000)]
Apply r19642 also pgssubdec:
Make sure AVSubtitle is initialized, memset it to 0.

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

11 years agomdec: remove unused members from struct MDECContext
Måns Rullgård [Tue, 25 Aug 2009 23:28:33 +0000 (23:28 +0000)]
mdec: remove unused members from struct MDECContext

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

11 years agoRemove explicit init to zero of static inv_zigzag_direct16
Måns Rullgård [Tue, 25 Aug 2009 23:28:30 +0000 (23:28 +0000)]
Remove explicit init to zero of static inv_zigzag_direct16

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

11 years agowhitespace cosmetics
Diego Biurrun [Tue, 25 Aug 2009 20:02:30 +0000 (20:02 +0000)]
whitespace cosmetics

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

11 years agoreturn AVERROR(ENOMEM) if stream could not be allocated
Baptiste Coudurier [Tue, 25 Aug 2009 19:59:38 +0000 (19:59 +0000)]
return AVERROR(ENOMEM) if stream could not be allocated

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

11 years agocheck av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu
Kent Mein [Tue, 25 Aug 2009 19:58:21 +0000 (19:58 +0000)]
check av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu

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

11 years agoDo not read index chunks as audio/video data; closes issue 1336.
Maksym Veremeyenko [Tue, 25 Aug 2009 09:46:16 +0000 (09:46 +0000)]
Do not read index chunks as audio/video data; closes issue 1336.
patch by Maksym Veremeyenko, verem m1stereo tv

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

11 years agoAdd Bluray Subtitle Support
Stephen Backway [Tue, 25 Aug 2009 08:47:39 +0000 (08:47 +0000)]
Add Bluray Subtitle Support

Patch by Stephen Backway, stev391 A exemail D com D au

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

11 years agoMark video from .mtv files correctly as upside-down.
Reimar Döffinger [Tue, 25 Aug 2009 07:47:34 +0000 (07:47 +0000)]
Mark video from .mtv files correctly as upside-down.

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

11 years agompegts: change variable-length array to fixed length
Måns Rullgård [Mon, 24 Aug 2009 21:42:25 +0000 (21:42 +0000)]
mpegts: change variable-length array to fixed length

The difference between 188 and 204 is not worth worrying about.

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

11 years agoPPC: remove unnecessary alignment on local variables
Måns Rullgård [Mon, 24 Aug 2009 21:42:22 +0000 (21:42 +0000)]
PPC: remove unnecessary alignment on local variables

Storing a single element from a vector where all elements have the same
value does not require an aligned destination.  Which element is stored
depends on the alignment of the destination address, but since they all
have the same value, the result is the same regardless of the alignment.

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

11 years agoCosmetics: add some whitespace around operators
Vitor Sessak [Mon, 24 Aug 2009 17:35:47 +0000 (17:35 +0000)]
Cosmetics: add some whitespace around operators

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

11 years agomatroskadec: add correct extradata offset for V_MS/VFW/FOURCC tracks
Aurelien Jacobs [Mon, 24 Aug 2009 13:43:33 +0000 (13:43 +0000)]
matroskadec: add correct extradata offset for V_MS/VFW/FOURCC tracks

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

11 years agomatroskadec: factorize some code
Aurelien Jacobs [Mon, 24 Aug 2009 13:40:30 +0000 (13:40 +0000)]
matroskadec: factorize some code

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

11 years agoAdd necessary #include for config.h.
Diego Biurrun [Mon, 24 Aug 2009 10:59:14 +0000 (10:59 +0000)]
Add necessary #include for config.h.

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

11 years agoPPC: simplify loading some values into altivec registers
Måns Rullgård [Mon, 24 Aug 2009 10:36:13 +0000 (10:36 +0000)]
PPC: simplify loading some values into altivec registers

Instead of filling a local array with the desired value and loading it,
load a single element and vec_splat() it to fill the vector.

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

11 years agoAdd missing header to fix 'make checkheaders'.
Diego Biurrun [Mon, 24 Aug 2009 10:06:26 +0000 (10:06 +0000)]
Add missing header to fix 'make checkheaders'.

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

11 years agoswscale-example: Rename src->ref so as to not confuse with src being used in doTest().
Ramiro Polla [Sun, 23 Aug 2009 20:31:38 +0000 (20:31 +0000)]
swscale-example: Rename src->ref so as to not confuse with src being used in doTest().

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

11 years agoswscale-example: Use SWS_BILINEAR instead of hardcoded value.
Ramiro Polla [Sun, 23 Aug 2009 20:29:49 +0000 (20:29 +0000)]
swscale-example: Use SWS_BILINEAR instead of hardcoded value.

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

11 years agoAdd myself as maintainer for AVR32 and MIPS
Måns Rullgård [Sun, 23 Aug 2009 15:39:42 +0000 (15:39 +0000)]
Add myself as maintainer for AVR32 and MIPS

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

11 years agoconfigure: fix filter() function when matching multiple patterns
Måns Rullgård [Sun, 23 Aug 2009 15:39:39 +0000 (15:39 +0000)]
configure: fix filter() function when matching multiple patterns

This makes comma-separated patters to --disable-decoder and friends
work correctly with POSIX-compliant shells.

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

11 years agoAdd PIC flags early so tests they affect give correct results
Måns Rullgård [Sun, 23 Aug 2009 13:46:07 +0000 (13:46 +0000)]
Add PIC flags early so tests they affect give correct results

This is mainly the checks for ebx on x86, but possibly others too.

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

11 years agoInclude required headers in {mips,ppc}/mathops.h
Måns Rullgård [Sun, 23 Aug 2009 11:02:41 +0000 (11:02 +0000)]
Include required headers in {mips,ppc}/mathops.h

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

11 years agoSkip headers requiring external libs not present in checkheaders
Måns Rullgård [Sun, 23 Aug 2009 11:02:37 +0000 (11:02 +0000)]
Skip headers requiring external libs not present in checkheaders

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

11 years agoconfigure: simplify directory creation for out of tree builds
Måns Rullgård [Sun, 23 Aug 2009 11:02:35 +0000 (11:02 +0000)]
configure: simplify directory creation for out of tree builds

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

11 years agoFix dependency generation for yasm assembler files
Måns Rullgård [Sun, 23 Aug 2009 11:02:32 +0000 (11:02 +0000)]
Fix dependency generation for yasm assembler files

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

11 years agoTwinVQ decoder
Vitor Sessak [Sun, 23 Aug 2009 01:55:54 +0000 (01:55 +0000)]
TwinVQ decoder

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

11 years agoFix inconsistent indentation.
Ramiro Polla [Sat, 22 Aug 2009 19:30:19 +0000 (19:30 +0000)]
Fix inconsistent indentation.

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

11 years agoUse generic multi-stream key frame finding routine to implement read_seek2 and map
Ivan Schreter [Sat, 22 Aug 2009 16:07:50 +0000 (16:07 +0000)]
Use generic multi-stream key frame finding routine to implement read_seek2 and map
read_seek to read_seek2.

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

11 years agoSupport for generic multi-stream key frame finding for new seek API.
Ivan Schreter [Sat, 22 Aug 2009 16:05:43 +0000 (16:05 +0000)]
Support for generic multi-stream key frame finding for new seek API.

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

11 years agobring back some randomness in fft-test. (regression in r18070)
Loren Merritt [Sat, 22 Aug 2009 15:56:06 +0000 (15:56 +0000)]
bring back some randomness in fft-test. (regression in r18070)

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

11 years agoAdd some more wmapro decoder hunks
Sascha Sommer [Fri, 21 Aug 2009 16:54:42 +0000 (16:54 +0000)]
Add some more wmapro decoder hunks

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

11 years agoReplace redundant GNUC_PREREQ macro by AV_GCC_VERSION_AT_LEAST from libavutil.
Diego Biurrun [Fri, 21 Aug 2009 10:10:42 +0000 (10:10 +0000)]
Replace redundant GNUC_PREREQ macro by AV_GCC_VERSION_AT_LEAST from libavutil.

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

11 years agoReplace #ifdef PIC checks with the more appropriate HAVE_EBX_AVAILABLE/HAVE_7REGS.
Reimar Döffinger [Fri, 21 Aug 2009 09:54:28 +0000 (09:54 +0000)]
Replace #ifdef PIC checks with the more appropriate HAVE_EBX_AVAILABLE/HAVE_7REGS.

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

11 years agoAdd missing #includes to pass 'make checkheaders'.
Diego Biurrun [Fri, 21 Aug 2009 08:46:49 +0000 (08:46 +0000)]
Add missing #includes to pass 'make checkheaders'.

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

11 years agoAdd support for S/PDIF encapsulation.
Bartlomiej Wolowiec [Fri, 21 Aug 2009 08:34:19 +0000 (08:34 +0000)]
Add support for S/PDIF encapsulation.

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

11 years agoAlways allocate a buffer of AVPALETTE_SIZE for palette in the subtitle
Reimar Döffinger [Thu, 20 Aug 2009 18:54:50 +0000 (18:54 +0000)]
Always allocate a buffer of AVPALETTE_SIZE for palette in the subtitle
decoders instead of as small as possible.
This avoids completely unnecessary issues with e.g. libswscale.

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

11 years agoCheck return values of sws_allocVec() and sws_getConstVec().
Ramiro Polla [Thu, 20 Aug 2009 01:55:45 +0000 (01:55 +0000)]
Check return values of sws_allocVec() and sws_getConstVec().

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

11 years agoconfigure: add --enable-pic flag
Måns Rullgård [Thu, 20 Aug 2009 01:06:18 +0000 (01:06 +0000)]
configure: add --enable-pic flag

Using this flag enables position-independent code even when not strictly
required.  It is impossible to use --disable-pic to forcibly disable PIC
when other properties mandate it.

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

11 years agoGet rid of large stack array in rd8x8_c()
Måns Rullgård [Wed, 19 Aug 2009 21:59:44 +0000 (21:59 +0000)]
Get rid of large stack array in rd8x8_c()

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

11 years agoeval: replace variable-length array with av_malloc/free
Måns Rullgård [Wed, 19 Aug 2009 21:59:40 +0000 (21:59 +0000)]
eval: replace variable-length array with av_malloc/free

There is a theoretical possibility to pass a very long string to ff_parse,
which could crash if allocated from the stack.  This allows the allocation
to be checked properly.

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

11 years agoflacdec: change variable-length array to fixed length
Måns Rullgård [Wed, 19 Aug 2009 21:59:36 +0000 (21:59 +0000)]
flacdec: change variable-length array to fixed length

pred_order can never exceed 32, so always allocating that amount is safe
and not very wasteful.

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

11 years agoFree initial swscale context, too. Avoids a valgrind warning.
Reimar Döffinger [Wed, 19 Aug 2009 08:21:55 +0000 (08:21 +0000)]
Free initial swscale context, too. Avoids a valgrind warning.

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