OSDN Git Service

coroid/libav_saccubus.git
14 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

14 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

14 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

14 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

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

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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
parameters.

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

14 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
parameters.

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

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

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

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

14 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

14 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

14 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

14 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

14 years agoAdd frame_size as a codec parameter requirement for Speex in
Justin Ruggles [Fri, 4 Sep 2009 21:38:45 +0000 (21:38 +0000)]
Add frame_size as a codec parameter requirement for Speex in
av_find_stream_info().  It forces decoding of a packet when there is no
Speex header in order to determine the correct frame size.

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

14 years agoReduce pointless verbosity after seeks in the MP3 decoder.
Diego Biurrun [Fri, 4 Sep 2009 19:04:12 +0000 (19:04 +0000)]
Reduce pointless verbosity after seeks in the MP3 decoder.

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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