ffmpeg.git
11 years agoSimplify r20025: use align_get_bits instead of reimplementing it.
Reimar Döffinger [Tue, 29 Sep 2009 11:06:04 +0000 (11:06 +0000)]
Simplify r20025: use align_get_bits instead of reimplementing it.

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

11 years agoWMA: store level_table as floats, use type punning for sign flip in decode
Måns Rullgård [Tue, 29 Sep 2009 10:38:34 +0000 (10:38 +0000)]
WMA: store level_table as floats, use type punning for sign flip in decode

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

11 years agoWMA: use type punning and unroll loops in decode_exp_vlc()
Måns Rullgård [Tue, 29 Sep 2009 10:38:30 +0000 (10:38 +0000)]
WMA: use type punning and unroll loops in decode_exp_vlc()

GCC does stupid things if these assignments are done using floats
directly, so fill the runs using integer operations instead.  Also
unroll the loops since the length is always a multiple of 4.

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

11 years agoWMA: use a table instead of pow() in decode_exp_vlc
Måns Rullgård [Tue, 29 Sep 2009 10:38:27 +0000 (10:38 +0000)]
WMA: use a table instead of pow() in decode_exp_vlc

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

11 years agoSync AC3 probe values with MP3 probe values, they have to avoid similar issues.
Reimar Döffinger [Tue, 29 Sep 2009 10:23:47 +0000 (10:23 +0000)]
Sync AC3 probe values with MP3 probe values, they have to avoid similar issues.
This fixes ffmpeg-generated files with -acodec ac3 being detected as raw ac3
instead of MPEG.

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

11 years agoExtend DV autodetection to also reliably detect single-frame DVs with
Reimar Döffinger [Tue, 29 Sep 2009 10:12:18 +0000 (10:12 +0000)]
Extend DV autodetection to also reliably detect single-frame DVs with
a higher score that MAX/4.
It checks that there are at least 10 DIF headers and at least one per
24000 bytes, and if so considers the file reliably detected as DV.
Passes probetest, too.

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

11 years agoAdd id3v2 metadata conversion table and use it in mp3 muxer.
Anton Khirnov [Tue, 29 Sep 2009 07:05:03 +0000 (07:05 +0000)]
Add id3v2 metadata conversion table and use it in mp3 muxer.

Patch by Anton Khirnov, wyskas gmail

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

11 years agoMake sure all the bits are written to output in fax data decoder.
Kostya Shishkov [Tue, 29 Sep 2009 05:55:14 +0000 (05:55 +0000)]
Make sure all the bits are written to output in fax data decoder.
This fixes decoding TIFF images with fax compression and width being not
multiple of eight (and issue 1429).

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

11 years agosome more linebreak and brace placement cosmetics
Diego Biurrun [Mon, 28 Sep 2009 21:46:22 +0000 (21:46 +0000)]
some more linebreak and brace placement cosmetics

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

11 years agobrace placement and linebreak cosmetics
Diego Biurrun [Mon, 28 Sep 2009 21:13:47 +0000 (21:13 +0000)]
brace placement and linebreak cosmetics

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

11 years agoRefactor channel element configuration and mapping code into its own function
Robert Swain [Mon, 28 Sep 2009 15:37:18 +0000 (15:37 +0000)]
Refactor channel element configuration and mapping code into its own function
to allow reuse

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

11 years agoReindent after last commit
Robert Swain [Mon, 28 Sep 2009 15:35:51 +0000 (15:35 +0000)]
Reindent after last commit

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

11 years agoAAC: Add channel layout support for channel configuration as defined in the
Robert Swain [Mon, 28 Sep 2009 15:35:13 +0000 (15:35 +0000)]
AAC: Add channel layout support for channel configuration as defined in the
specification

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

11 years agocosmetics: reindent and reformat function declarations
Kostya Shishkov [Mon, 28 Sep 2009 05:19:13 +0000 (05:19 +0000)]
cosmetics: reindent and reformat function declarations

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

11 years agoFinally distinguish TIFF_CCITT_RLE and TIFF_G3 1-D case, so both of them
Kostya Shishkov [Mon, 28 Sep 2009 05:17:20 +0000 (05:17 +0000)]
Finally distinguish TIFF_CCITT_RLE and TIFF_G3 1-D case, so both of them
will be decoded correctly.
This fixes issue 1423.

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

11 years agoMake TIFF decoder load compression options only for corresponding codec
Kostya Shishkov [Mon, 28 Sep 2009 05:15:27 +0000 (05:15 +0000)]
Make TIFF decoder load compression options only for corresponding codec

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

11 years agoARM: NEON optimised vector_fmul_add
Måns Rullgård [Sun, 27 Sep 2009 16:52:05 +0000 (16:52 +0000)]
ARM: NEON optimised vector_fmul_add

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

11 years agocosmetics: fix indentation after previous commit
Måns Rullgård [Sun, 27 Sep 2009 16:52:00 +0000 (16:52 +0000)]
cosmetics: fix indentation after previous commit

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

11 years agoDrop unused args from vector_fmul_add_add, simpify code, and rename
Måns Rullgård [Sun, 27 Sep 2009 16:51:54 +0000 (16:51 +0000)]
Drop unused args from vector_fmul_add_add, simpify code, and rename

The src3 and step arguments to vector_fmul_add_add() are always zero
and one, respectively.  This removes these arguments from the function,
simplifies the code accordingly, and renames the function to better
match the new operation.

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

11 years agoRemove duplicated / stray code which slipped in with r20057.
Stefano Sabatini [Sun, 27 Sep 2009 10:29:24 +0000 (10:29 +0000)]
Remove duplicated / stray code which slipped in with r20057.

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

11 years agoGet rid of "function" "keywords" in lavfilter testing code, hopefully will
Reimar Döffinger [Sun, 27 Sep 2009 10:06:35 +0000 (10:06 +0000)]
Get rid of "function" "keywords" in lavfilter testing code, hopefully will
make regressions tests runnable again with all shells.

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

11 years agoDo not compile ZLib data uncompressing function in TIFF decoder when ZLib is
Martin Storsjö [Sun, 27 Sep 2009 09:43:11 +0000 (09:43 +0000)]
Do not compile ZLib data uncompressing function in TIFF decoder when ZLib is
not present.
Patch by Martin Storsjö
($firstname <at> $firstname <dot> two first letters of $lastname)

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

11 years agoImplement a lavfitest target for testing regressions in libavfilter.
Stefano Sabatini [Sun, 27 Sep 2009 09:33:37 +0000 (09:33 +0000)]
Implement a lavfitest target for testing regressions in libavfilter.
The target is disabled.

See the thread: "[PATCH] libavfilter-soc: regression test for libavfilter".

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

11 years agoWMAPRO: use vector_fmul_scalar from dsputil where possible
Måns Rullgård [Sun, 27 Sep 2009 08:16:50 +0000 (08:16 +0000)]
WMAPRO: use vector_fmul_scalar from dsputil where possible

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

11 years agoRearrange loop structure for approx. 35-50% faster calc_transform_coeffs_cpl()
Justin Ruggles [Sun, 27 Sep 2009 07:16:51 +0000 (07:16 +0000)]
Rearrange loop structure for approx. 35-50% faster calc_transform_coeffs_cpl()
depending on content.

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

11 years agoLooks like ZLib uncompress() cannot deal with some kinds of TIFF deflated data,
Kostya Shishkov [Sun, 27 Sep 2009 07:01:01 +0000 (07:01 +0000)]
Looks like ZLib uncompress() cannot deal with some kinds of TIFF deflated data,
so replace it with custom code.
This fixes issue 1419.

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

11 years agoMove variable declaration to inside of loop.
Justin Ruggles [Sun, 27 Sep 2009 06:38:57 +0000 (06:38 +0000)]
Move variable declaration to inside of loop.

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

11 years agoCosmetics: Rename some variables.
Justin Ruggles [Sun, 27 Sep 2009 06:38:13 +0000 (06:38 +0000)]
Cosmetics: Rename some variables.

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

11 years agoSimplify coupling band loop.
Justin Ruggles [Sun, 27 Sep 2009 06:33:23 +0000 (06:33 +0000)]
Simplify coupling band loop.

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

11 years agoRemove unneeded table lookup.
Justin Ruggles [Sun, 27 Sep 2009 06:16:49 +0000 (06:16 +0000)]
Remove unneeded table lookup.

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

11 years agoCosmetics: Rename some variables to be more descriptive of their use.
Justin Ruggles [Sun, 27 Sep 2009 06:13:01 +0000 (06:13 +0000)]
Cosmetics: Rename some variables to be more descriptive of their use.

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

11 years agoMove some variable declarations to inside of loops.
Justin Ruggles [Sun, 27 Sep 2009 06:10:36 +0000 (06:10 +0000)]
Move some variable declarations to inside of loops.

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

11 years agoRemove unneeded variable.
Justin Ruggles [Sun, 27 Sep 2009 06:01:32 +0000 (06:01 +0000)]
Remove unneeded variable.

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

11 years agoCosmetics: Rename some variables to be more descriptive of their use.
Justin Ruggles [Sun, 27 Sep 2009 05:48:03 +0000 (05:48 +0000)]
Cosmetics: Rename some variables to be more descriptive of their use.

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

11 years agoRemove some unneeded variables.
Justin Ruggles [Sun, 27 Sep 2009 05:39:57 +0000 (05:39 +0000)]
Remove some unneeded variables.

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

11 years agoCosmetics: Rename some variables
Justin Ruggles [Sun, 27 Sep 2009 05:36:52 +0000 (05:36 +0000)]
Cosmetics: Rename some variables

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

11 years agosimplify 2 lines into 1 using FFMIN
Justin Ruggles [Sun, 27 Sep 2009 04:57:36 +0000 (04:57 +0000)]
simplify 2 lines into 1 using FFMIN

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

11 years agoCosmetics: Do some basic pretty-printing.
Justin Ruggles [Sun, 27 Sep 2009 04:55:37 +0000 (04:55 +0000)]
Cosmetics: Do some basic pretty-printing.

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

11 years agoSimplify by combining increment with array access.
Justin Ruggles [Sun, 27 Sep 2009 04:47:38 +0000 (04:47 +0000)]
Simplify by combining increment with array access.

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

11 years agocosmetics: Rename some variables to be more descriptive of their use. Do some
Justin Ruggles [Sun, 27 Sep 2009 04:46:56 +0000 (04:46 +0000)]
cosmetics: Rename some variables to be more descriptive of their use. Do some
pretty-printing as well.

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

11 years agoMove 2 variable declarations to inside of loop.
Justin Ruggles [Sun, 27 Sep 2009 04:41:05 +0000 (04:41 +0000)]
Move 2 variable declarations to inside of loop.

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

11 years agosimplify by combining increment with array access
Justin Ruggles [Sun, 27 Sep 2009 04:37:00 +0000 (04:37 +0000)]
simplify by combining increment with array access

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

11 years agoRemove unneeded variable
Justin Ruggles [Sun, 27 Sep 2009 04:32:31 +0000 (04:32 +0000)]
Remove unneeded variable

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

11 years agoHardcode AC-3 critical band tables when CONFIG_HARDCODED_TABLES is set.
Justin Ruggles [Sun, 27 Sep 2009 04:07:49 +0000 (04:07 +0000)]
Hardcode AC-3 critical band tables when CONFIG_HARDCODED_TABLES is set.

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

11 years agoAdd a -loglevel command line option to ffserver.
Stefano Sabatini [Sat, 26 Sep 2009 23:30:41 +0000 (23:30 +0000)]
Add a -loglevel command line option to ffserver.

The -loglevel option makes possible to set the logging level used by
the libav* libraries.

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

11 years agosimplify format string for writing pix_fmt string.
Justin Ruggles [Sat, 26 Sep 2009 22:54:29 +0000 (22:54 +0000)]
simplify format string for writing pix_fmt string.

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

11 years ago100l, typo
Baptiste Coudurier [Sat, 26 Sep 2009 21:06:18 +0000 (21:06 +0000)]
100l, typo

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

11 years agoExport mov/mp4 major and compatible brands as metadata.
haim alon [Sat, 26 Sep 2009 20:51:38 +0000 (20:51 +0000)]
Export mov/mp4 major and compatible brands as metadata.
Patch by haim alon, haim dot alter at gmail dot com

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

11 years agoARM: NEON optimised vector_clipf
Måns Rullgård [Sat, 26 Sep 2009 19:55:21 +0000 (19:55 +0000)]
ARM: NEON optimised vector_clipf

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

11 years agoWMA: remove some unused variables
Måns Rullgård [Sat, 26 Sep 2009 19:23:27 +0000 (19:23 +0000)]
WMA: remove some unused variables

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

11 years agoARM: NEON optimised vector_fmul_reverse
Måns Rullgård [Sat, 26 Sep 2009 19:23:25 +0000 (19:23 +0000)]
ARM: NEON optimised vector_fmul_reverse

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

11 years agoDocument the -loglevel option in the ffmpeg man page.
Stefano Sabatini [Sat, 26 Sep 2009 17:21:22 +0000 (17:21 +0000)]
Document the -loglevel option in the ffmpeg man page.

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

11 years agoAdd a -loglevel command line option to ffplay.
Stefano Sabatini [Sat, 26 Sep 2009 17:18:02 +0000 (17:18 +0000)]
Add a -loglevel command line option to ffplay.

The -loglevel option makes possible to set the logging level used by
the libav* libraries.

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

11 years agoSpecify maximum sample rate of MLP by defining the factor relative to 48000
Reimar Döffinger [Sat, 26 Sep 2009 16:04:35 +0000 (16:04 +0000)]
Specify maximum sample rate of MLP by defining the factor relative to 48000
instead of directly.
This makes clear that the code assumes the maximum sample rate to be
a multiple of 48000 and also removes the division from the MAX_BLOCKSIZE
macros, which causes an issue with the Solaris assembler where "/" is
a comment marker unless the --divide option is used.

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

11 years agoFix decoding of TIFF CCITT RLE compressed data.
Kostya Shishkov [Sat, 26 Sep 2009 05:48:50 +0000 (05:48 +0000)]
Fix decoding of TIFF CCITT RLE compressed data.
This fixes issue 1417.

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

11 years agoAlign pix_fmt list by allowing one more char for the pix_fmt name.
Justin Ruggles [Fri, 25 Sep 2009 01:31:53 +0000 (01:31 +0000)]
Align pix_fmt list by allowing one more char for the pix_fmt name.

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

11 years agoRemove ff_realloc_static, it is no longer used and since it was declared
Reimar Döffinger [Thu, 24 Sep 2009 22:39:47 +0000 (22:39 +0000)]
Remove ff_realloc_static, it is no longer used and since it was declared
static there is no reason to wait for a major version bump, removing
it does not change ABI in any way, not even the non-public one.

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

11 years agoReindent.
Reimar Döffinger [Thu, 24 Sep 2009 22:37:34 +0000 (22:37 +0000)]
Reindent.

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

11 years agoRemove a piece of code left-over from the removed alloc'd static vlc table code.
Reimar Döffinger [Thu, 24 Sep 2009 22:36:52 +0000 (22:36 +0000)]
Remove a piece of code left-over from the removed alloc'd static vlc table code.

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

11 years agoReindent code folowing previous commit (r20019)
Vitor Sessak [Thu, 24 Sep 2009 21:26:35 +0000 (21:26 +0000)]
Reindent code folowing previous commit (r20019)

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

11 years agoFactorize duplicated code in at1_imdct_block()
Vitor Sessak [Thu, 24 Sep 2009 21:24:58 +0000 (21:24 +0000)]
Factorize duplicated code in at1_imdct_block()

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

11 years agoAllow decoding of 625/50 (PAL) with video_stype==1.
Maksym Veremeyenko [Thu, 24 Sep 2009 19:37:41 +0000 (19:37 +0000)]
Allow decoding of 625/50 (PAL) with video_stype==1.

Patch by Maksym Veremeyenko, verem m1stereo tv

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

11 years agoFix reading VDR files (broken since r19000).
Carl Eugen Hoyos [Thu, 24 Sep 2009 19:20:53 +0000 (19:20 +0000)]
Fix reading VDR files (broken since r19000).

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

11 years agoSupport both LSB and MSB orders for TIFF CCITT G.x compressed data.
Kostya Shishkov [Thu, 24 Sep 2009 18:30:28 +0000 (18:30 +0000)]
Support both LSB and MSB orders for TIFF CCITT G.x compressed data.
This fixes issue 1410.

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

11 years agoCheck if a git-svn revision number is available to try to get better version
Alex Converse [Thu, 24 Sep 2009 16:54:26 +0000 (16:54 +0000)]
Check if a git-svn revision number is available to try to get better version
information from git.

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

11 years agoFix possible buffer over-read in vorbis_comment, fix it double to be sure.
Reimar Döffinger [Thu, 24 Sep 2009 15:37:09 +0000 (15:37 +0000)]
Fix possible buffer over-read in vorbis_comment, fix it double to be sure.
First, make s signed, so that comparisons against end - p will not be made as
unsigned, making the check incorrectly pass if p is beyond end.
Also ensure that p will never be > end, so the code is correct also if
buf is not padded.

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

11 years agoCompletely remove INIT_VLC_USE_STATIC, it is deprecated since ages and
Reimar Döffinger [Thu, 24 Sep 2009 15:13:34 +0000 (15:13 +0000)]
Completely remove INIT_VLC_USE_STATIC, it is deprecated since ages and
finally no longer used anywhere.

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

11 years agoReplace last use of INIT_VLC_USE_STATIC by INIT_VLC_USE_NEW_STATIC in svq1dec
Reimar Döffinger [Thu, 24 Sep 2009 15:12:05 +0000 (15:12 +0000)]
Replace last use of INIT_VLC_USE_STATIC by INIT_VLC_USE_NEW_STATIC in svq1dec

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

11 years agoChange VLC table creation in x8_vlc_init to use INIT_VLC_USE_NEW_STATIC.
Reimar Döffinger [Thu, 24 Sep 2009 11:04:46 +0000 (11:04 +0000)]
Change VLC table creation in x8_vlc_init to use INIT_VLC_USE_NEW_STATIC.

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

11 years agoUse ff_msmpeg4_decode_init to initialize ff_msmp4_mb_i_vlc since static
Reimar Döffinger [Thu, 24 Sep 2009 10:49:47 +0000 (10:49 +0000)]
Use ff_msmpeg4_decode_init to initialize ff_msmp4_mb_i_vlc since static
VLC tables should only be initialized from one place.
This initializes/calculates more VLC tables than necessary for VC1 decoding,
but this is only done once and only a small overhead in time and space (maybe
30 kB) it seems not worth adding a separate function.

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

11 years agoUse INIT_VLC_STATIC where easily possible in svq1dec
Reimar Döffinger [Thu, 24 Sep 2009 09:44:51 +0000 (09:44 +0000)]
Use INIT_VLC_STATIC where easily possible in svq1dec

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

11 years agoMake sure that all memory allocations succeed.
Mike Melanson [Thu, 24 Sep 2009 06:33:16 +0000 (06:33 +0000)]
Make sure that all memory allocations succeed.
Based on 28_theora_malloc_checks.patch from the Google Chrome team.

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

11 years agoTake into account real number of colours when reading BMP palette.
Kostya Shishkov [Thu, 24 Sep 2009 05:24:46 +0000 (05:24 +0000)]
Take into account real number of colours when reading BMP palette.
This fixes issue 1408

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

11 years agoid3v2: Add support for UTF-16 encoding.
Anton Khirnov [Wed, 23 Sep 2009 18:22:00 +0000 (18:22 +0000)]
id3v2: Add support for UTF-16 encoding.
patch by Anton Khirnov, wyskas gmail com

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

11 years agoid3v2: Use 0 instead of '\0'.
Anton Khirnov [Wed, 23 Sep 2009 18:10:29 +0000 (18:10 +0000)]
id3v2: Use 0 instead of '\0'.
patch by Anton Khirnov, wyskas gmail com

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

11 years agoid3v2: check for enough space to write full UTF-8 characters.
Anton Khirnov [Wed, 23 Sep 2009 18:04:40 +0000 (18:04 +0000)]
id3v2: check for enough space to write full UTF-8 characters.
patch by Anton Khirnov, wyskas gmail com

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

11 years agoFix format string to match the types printed.
Reimar Döffinger [Wed, 23 Sep 2009 15:30:38 +0000 (15:30 +0000)]
Fix format string to match the types printed.

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

11 years agoMake sure priv_data is freed and codec is set to NULL in case of failure of avcodec_o...
Michael Niedermayer [Wed, 23 Sep 2009 15:16:36 +0000 (15:16 +0000)]
Make sure priv_data is freed and codec is set to NULL in case of failure of avcodec_open().

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

11 years agoCheck submap indexes.
Google Chrome [Wed, 23 Sep 2009 14:19:17 +0000 (14:19 +0000)]
Check submap indexes.
10_vorbis_submap_indexes.patch by chrome.
I am applying this even though Reimar had some comments to improve it as it fixes
a serious security issue and I do not want to leave such things unfixed.

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

11 years agoARM: NEON optimised int32_to_float_fmul_scalar
Måns Rullgård [Wed, 23 Sep 2009 13:52:56 +0000 (13:52 +0000)]
ARM: NEON optimised int32_to_float_fmul_scalar

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

11 years agoAAC: minor simplification in PNS decoding
Måns Rullgård [Wed, 23 Sep 2009 13:52:53 +0000 (13:52 +0000)]
AAC: minor simplification in PNS decoding

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

11 years agoconfigure: fix tms470 flag mapping for soft-float
Måns Rullgård [Wed, 23 Sep 2009 13:52:50 +0000 (13:52 +0000)]
configure: fix tms470 flag mapping for soft-float

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

11 years agoMake error return sign consistent.
Michael Niedermayer [Wed, 23 Sep 2009 13:18:29 +0000 (13:18 +0000)]
Make error return sign consistent.

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

11 years agoCheck begin/end/partition_size.
Google Chrome [Wed, 23 Sep 2009 13:08:48 +0000 (13:08 +0000)]
Check begin/end/partition_size.
23_vorbis_sane_partition.patch by chrome.
Also this should be better documented but i prefer not to leave potential
security issues open due to missing documentation.

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

11 years agoFix >= vs > check of coded_fragment_list_index.
Google Chrome [Wed, 23 Sep 2009 12:42:12 +0000 (12:42 +0000)]
Fix >= vs > check of coded_fragment_list_index.
22_fix_theora_frag_fencepost.patch by chrome

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

11 years agoRemove unused variables, fixes the warnings:
Diego Biurrun [Wed, 23 Sep 2009 12:29:56 +0000 (12:29 +0000)]
Remove unused variables, fixes the warnings:
libavcodec/wmadec.c:629: warning: unused variable `i'
libavcodec/wmadec.c:628: warning: unused variable `b'
libavcodec/wmadec.c:628: warning: unused variable `a'

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

11 years agoFix init_get_bits() buffer size.
Google Chrome [Wed, 23 Sep 2009 12:27:10 +0000 (12:27 +0000)]
Fix init_get_bits() buffer size.
18_fix_theora_header_bit_len.patch by chrome

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

11 years agoCheck res_setup->books.
Google Chrome [Wed, 23 Sep 2009 12:24:21 +0000 (12:24 +0000)]
Check  res_setup->books.
15_more_residue_book_indexes.patch by chrome.

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

11 years agoCheck masterbook index and subclass book index.
Google Chrome [Wed, 23 Sep 2009 12:17:54 +0000 (12:17 +0000)]
Check masterbook index and subclass book index.
14_floor_masterbook_index.patch by chrome

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

11 years agoAdd checks for per-packet mode indexes and per-header mode mapping indexes.
Google Chrome [Wed, 23 Sep 2009 12:09:33 +0000 (12:09 +0000)]
Add checks for per-packet mode indexes and per-header mode mapping indexes.
12_vorbis_mode_indexes.patch by chrome
maybe exploitable

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

11 years agoCheck classbook value.
Google Chrome [Wed, 23 Sep 2009 12:02:31 +0000 (12:02 +0000)]
Check classbook value.
11_vorbis_residue_book_index.patch by chrome.

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

11 years agoSet data_size to 0 to avoid having it uninitialized.
Michael Niedermayer [Wed, 23 Sep 2009 11:44:30 +0000 (11:44 +0000)]
Set data_size to 0 to avoid having it uninitialized.
based on 31_mp3_outlen.patch by chrome.

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

11 years agoCheck data_size in decode_frame_mp3on4().
Michael Niedermayer [Wed, 23 Sep 2009 11:33:44 +0000 (11:33 +0000)]
Check data_size in decode_frame_mp3on4().

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

11 years agocheck data_size in decode_frame()
Michael Niedermayer [Wed, 23 Sep 2009 11:29:38 +0000 (11:29 +0000)]
check data_size in decode_frame()

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

11 years agoARM: improve armcc detection
Måns Rullgård [Wed, 23 Sep 2009 10:48:58 +0000 (10:48 +0000)]
ARM: improve armcc detection

Apparently some versions of armcc do not identify as RVCT.  This
changes the test to a string used by all versions.

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

11 years agoFix book_idx check.
Google Chrome [Wed, 23 Sep 2009 10:45:14 +0000 (10:45 +0000)]
Fix book_idx check.
25_vorbis_floor0_index.patch by chrome.

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

11 years agoSanity checks for magnitude and angle.
Google Chrome [Wed, 23 Sep 2009 10:40:33 +0000 (10:40 +0000)]
Sanity checks for magnitude and angle.
26_vorbis_mag_angle_index.patch by chrome

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

11 years ago= -> == typo.
Google Chrome [Wed, 23 Sep 2009 10:33:49 +0000 (10:33 +0000)]
= -> == typo.
27_vorbis_residue_loop_error.patch by chrome

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

11 years agoWMA: use DSPContext.butterflies_float
Måns Rullgård [Wed, 23 Sep 2009 10:33:13 +0000 (10:33 +0000)]
WMA: use DSPContext.butterflies_float

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

11 years agoCosmetics: Fix typo.
Carl Eugen Hoyos [Wed, 23 Sep 2009 10:07:29 +0000 (10:07 +0000)]
Cosmetics: Fix typo.

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