platform/upstream/libav.git
15 years agoRevert r18700, documentation of deprecated functions might be useful for
Vitor Sessak [Mon, 27 Apr 2009 18:35:54 +0000 (18:35 +0000)]
Revert r18700, documentation of deprecated functions might be useful for
people trying to update to the new API.

Log of r18700:
Remove documentation from deprecated fields, they should not be used,
thus there is no sense in documenting them.

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

15 years agoCheck if there is enough bytes before reading the buffer in the EA ADPCM
Vitor Sessak [Mon, 27 Apr 2009 16:06:01 +0000 (16:06 +0000)]
Check if there is enough bytes before reading the buffer in the EA ADPCM
decoder. Fix issue 990.

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

15 years agoSkip 0x0000 frame footer in EA ADPCM decoder.
Vitor Sessak [Mon, 27 Apr 2009 16:04:43 +0000 (16:04 +0000)]
Skip 0x0000 frame footer in EA ADPCM decoder.

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

15 years agoRemove useless duplicated code in yuv2rgb_c_32, yuva2rgba_c and yuva2argb_c
Cédric Schieli [Mon, 27 Apr 2009 14:25:44 +0000 (14:25 +0000)]
Remove useless duplicated code in yuv2rgb_c_32, yuva2rgba_c and yuva2argb_c

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

15 years agoRemove useless and outright wrong chatter from avcodec_encode_video().
Michael Niedermayer [Mon, 27 Apr 2009 12:41:41 +0000 (12:41 +0000)]
Remove useless and outright wrong chatter from avcodec_encode_video().

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

15 years agoRemove redundant chatter from avcodec_encode_audio()
Michael Niedermayer [Mon, 27 Apr 2009 12:39:30 +0000 (12:39 +0000)]
Remove redundant chatter from avcodec_encode_audio()

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

15 years agoNegative is error not -1, corrected in the doxy for avcodec_decode_subtitle2().
Michael Niedermayer [Mon, 27 Apr 2009 12:38:14 +0000 (12:38 +0000)]
Negative is error not -1, corrected in the doxy for avcodec_decode_subtitle2().

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

15 years agoAdd multiframe note to avcodec_decode_video() too.
Michael Niedermayer [Mon, 27 Apr 2009 12:36:23 +0000 (12:36 +0000)]
Add multiframe note to avcodec_decode_video() too.

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

15 years agoCleanup first paragraph of doxy of avcodec_decode_audio3().
Michael Niedermayer [Mon, 27 Apr 2009 12:34:25 +0000 (12:34 +0000)]
Cleanup first paragraph of doxy of avcodec_decode_audio3().

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

15 years agoRemove documentation from deprecated fields, they should not be used,
Michael Niedermayer [Mon, 27 Apr 2009 12:28:56 +0000 (12:28 +0000)]
Remove documentation from deprecated fields, they should not be used,
thus there is no sense in documenting them.

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

15 years agoRemove confusing and redundant engrish chatter from avcodec_decode_video2().
Michael Niedermayer [Mon, 27 Apr 2009 12:25:36 +0000 (12:25 +0000)]
Remove confusing and redundant engrish chatter from avcodec_decode_video2().

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

15 years agoAdd avlanguage helpers in libavformat.
Cyril Comparon [Mon, 27 Apr 2009 07:27:39 +0000 (07:27 +0000)]
Add avlanguage helpers in libavformat.
Patch by Cyril Comparon: standard_gmail_full_name_address
Original thread: Suggestion for a centralized language-tag facility in libavformat
Date: 04/10/2009 07:33 PM

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

15 years agoMake function pointer assignments consistent in option handling.
Benoit Fouet [Mon, 27 Apr 2009 07:13:50 +0000 (07:13 +0000)]
Make function pointer assignments consistent in option handling.

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

15 years agoRevert changing VLC initialization type for RV3/4 decoder.
Kostya Shishkov [Mon, 27 Apr 2009 05:30:22 +0000 (05:30 +0000)]
Revert changing VLC initialization type for RV3/4 decoder.
While using large static table is not good (especially for embedded devices and
CPUs with small cache), other alternatives are not very good either.

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

15 years agomlpdec: Simplify filtering code by using only one counter variable.
Ramiro Polla [Sun, 26 Apr 2009 20:37:40 +0000 (20:37 +0000)]
mlpdec: Simplify filtering code by using only one counter variable.

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

15 years agoCorrectly update output sample format in wavpack decoder.
Laurent Aimar [Sun, 26 Apr 2009 04:23:29 +0000 (04:23 +0000)]
Correctly update output sample format in wavpack decoder.
Patch by Laurent Aimar (at 'fenrir (cons 'videolan 'org))

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

15 years agoProper subpacket size check for cook multichannel files.
Benjamin Larsson [Sat, 25 Apr 2009 20:09:34 +0000 (20:09 +0000)]
Proper subpacket size check for cook multichannel files.

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

15 years agoRemove parentheses
Benjamin Larsson [Sat, 25 Apr 2009 19:47:18 +0000 (19:47 +0000)]
Remove parentheses

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

15 years agoSet the type of size in COOKSubpacket to unsigned
Benjamin Larsson [Sat, 25 Apr 2009 18:43:30 +0000 (18:43 +0000)]
Set the type of size in COOKSubpacket to unsigned

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

15 years agoAdd pixdescs definitions for planar YUV pixfmts with 16 bits per
Stefano Sabatini [Sat, 25 Apr 2009 18:29:31 +0000 (18:29 +0000)]
Add pixdescs definitions for planar YUV pixfmts with 16 bits per
component.

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

15 years agoMake sure we only parse max amount of subpackets (5) in the cook decoder.
Benjamin Larsson [Sat, 25 Apr 2009 17:46:27 +0000 (17:46 +0000)]
Make sure we only parse max amount of subpackets (5) in the cook decoder.

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

15 years agoIndent
Benjamin Larsson [Sat, 25 Apr 2009 17:35:21 +0000 (17:35 +0000)]
Indent

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

15 years agoRemove redundant code
Benjamin Larsson [Sat, 25 Apr 2009 17:33:36 +0000 (17:33 +0000)]
Remove redundant code

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

15 years agoAdd Changelog for Cook multi channel support
Benjamin Larsson [Sat, 25 Apr 2009 10:47:24 +0000 (10:47 +0000)]
Add Changelog for Cook multi channel support

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

15 years agoSupport cook multichannel files.
Benjamin Larsson [Sat, 25 Apr 2009 10:46:07 +0000 (10:46 +0000)]
Support cook multichannel files.

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

15 years agoFix the COOKDEBUG code
Benjamin Larsson [Sat, 25 Apr 2009 10:25:14 +0000 (10:25 +0000)]
Fix the COOKDEBUG code

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

15 years agoFactor out COOKSubpacket, in preparation for multichannel support.
Benjamin Larsson [Sat, 25 Apr 2009 10:20:48 +0000 (10:20 +0000)]
Factor out COOKSubpacket, in preparation for multichannel support.

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

15 years agoAdd missing pixel format descriptor definitions.
Stefano Sabatini [Sat, 25 Apr 2009 07:53:55 +0000 (07:53 +0000)]
Add missing pixel format descriptor definitions.

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

15 years agoGet rid of monstrous static table and initialize VLCs for RV3/4 dynamically.
Kostya Shishkov [Sat, 25 Apr 2009 05:47:38 +0000 (05:47 +0000)]
Get rid of monstrous static table and initialize VLCs for RV3/4 dynamically.

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

15 years agoRemove useless assignment during initialization for some decoders
Kostya Shishkov [Fri, 24 Apr 2009 14:09:24 +0000 (14:09 +0000)]
Remove useless assignment during initialization for some decoders

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

15 years agoindent
Michael Niedermayer [Fri, 24 Apr 2009 13:38:28 +0000 (13:38 +0000)]
indent

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

15 years agoChange return type of opt_loglevel() from void to int.
Wolfram Gloger [Fri, 24 Apr 2009 11:56:23 +0000 (11:56 +0000)]
Change return type of opt_loglevel() from void to int.
Patch by Wolfram Gloger: wmglo (your at here) dent med uni (minus) muenchen de

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

15 years agoTrueMotion 2 uses its own YUV-like colourspace, so convert output to proper RGB.
Reimar Döffinger [Fri, 24 Apr 2009 06:44:16 +0000 (06:44 +0000)]
TrueMotion 2 uses its own YUV-like colourspace, so convert output to proper RGB.

Patch by Reimar Döffinger <latinize($name) at (MN's favourite mail provider).de>

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

15 years agocosmetics: remove extra space indentation
Kostya Shishkov [Fri, 24 Apr 2009 05:52:53 +0000 (05:52 +0000)]
cosmetics: remove extra space indentation

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

15 years agoMerge decoding functions for all bitdepths in WavPack decoder
Kostya Shishkov [Fri, 24 Apr 2009 05:50:19 +0000 (05:50 +0000)]
Merge decoding functions for all bitdepths in WavPack decoder

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

15 years agoSupport >8bit per component YUV in FFV1.
Michael Niedermayer [Fri, 24 Apr 2009 04:10:32 +0000 (04:10 +0000)]
Support >8bit per component YUV in FFV1.
decoding becomes slower, encoding becomes faster, with gcc on duron.
some inlining overrides like av_flatten are added to keep inlining similar
to before.

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

15 years agoForce speed irrelevant calls to get/put_symbol() to be noinline.
Michael Niedermayer [Fri, 24 Apr 2009 01:50:09 +0000 (01:50 +0000)]
Force speed irrelevant calls to get/put_symbol() to be noinline.
We need to change decode_line to always_inline because gcc decided not to inline
it anymore once we force some calls to get/put_symbol() to be non inlined and
this decision of gcc would lead to a 10% overall speed loss.
100k smaller object file, no speed change

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

15 years agoOptimize sign handling in get_symbol().
Michael Niedermayer [Fri, 24 Apr 2009 00:26:49 +0000 (00:26 +0000)]
Optimize sign handling in get_symbol().

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

15 years agoDon't loose bits_per_raw_sample when transcoding.
Michael Niedermayer [Thu, 23 Apr 2009 23:30:16 +0000 (23:30 +0000)]
Don't loose bits_per_raw_sample when transcoding.

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

15 years agoMake avcodec_thread_init() set the thread count, even in the case when
Stefano Sabatini [Thu, 23 Apr 2009 23:14:26 +0000 (23:14 +0000)]
Make avcodec_thread_init() set the thread count, even in the case when
threads support is not enabled. This should avoid the need for
thread_count explicit setting in applications.

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

15 years agoMake reset_ptr() void.
Carl Eugen Hoyos [Thu, 23 Apr 2009 22:19:53 +0000 (22:19 +0000)]
Make reset_ptr() void.

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

15 years agoavoid possibly uninitialized return value
Ivo van Poorten [Thu, 23 Apr 2009 18:44:03 +0000 (18:44 +0000)]
avoid possibly uninitialized return value
(found by clang static analyzer)

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

15 years agoHandle WavPack INT32INFO chunks with nonzero post shift
Kostya Shishkov [Thu, 23 Apr 2009 18:21:16 +0000 (18:21 +0000)]
Handle WavPack INT32INFO chunks with nonzero post shift

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

15 years agoAdd functions for decoding >16 bits WavPack files.
Kostya Shishkov [Thu, 23 Apr 2009 17:27:04 +0000 (17:27 +0000)]
Add functions for decoding >16 bits WavPack files.
Based on patches by Laurent Aimar (fenrir >whirlpool< videolan >dit< org)

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

15 years agoShift 9-15 bit samples to use full 16-bit range.
Laurent Aimar [Thu, 23 Apr 2009 07:44:04 +0000 (07:44 +0000)]
Shift 9-15 bit samples to use full 16-bit range.
Patch by Laurent Aimar <fenrir at VLCsite>
Thread: [PATCH] Fixed wavpack 9-15 bits support

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

15 years agoDisplay dimensions should not affect the real size of coded frame, thus set
Kostya Shishkov [Thu, 23 Apr 2009 07:14:02 +0000 (07:14 +0000)]
Display dimensions should not affect the real size of coded frame, thus set
only avctx->{width,height} and don't touch coded_{width,height} when parsing
them. This fixes the case when coded and display dimensions differ by more
than one macroblock.

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

15 years agoRemove 2 useless FFMIN().
Michael Niedermayer [Wed, 22 Apr 2009 22:05:34 +0000 (22:05 +0000)]
Remove 2 useless FFMIN().

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

15 years agoRemove apparently redundant code.
Michael Niedermayer [Wed, 22 Apr 2009 21:44:41 +0000 (21:44 +0000)]
Remove apparently redundant code.

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

15 years agoNSV : Add TOC2 parsing and seeking support.
Jai Menon [Wed, 22 Apr 2009 19:37:57 +0000 (19:37 +0000)]
NSV : Add TOC2 parsing and seeking support.

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

15 years agoRemove redundant code, found by CSA
Benjamin Larsson [Wed, 22 Apr 2009 13:52:33 +0000 (13:52 +0000)]
Remove redundant code, found by CSA

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

15 years agoconfigure: support Blackfin CPU names with --cpu
Måns Rullgård [Wed, 22 Apr 2009 09:27:36 +0000 (09:27 +0000)]
configure: support Blackfin CPU names with --cpu

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

15 years agoIt should be #if, not #ifdef
Andreas Öman [Wed, 22 Apr 2009 08:39:46 +0000 (08:39 +0000)]
It should be #if, not #ifdef

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

15 years agoSwitch VLC tables in WMV3/VC-1 decoder to new static init method
Kostya Shishkov [Wed, 22 Apr 2009 05:20:31 +0000 (05:20 +0000)]
Switch VLC tables in WMV3/VC-1 decoder to new static init method

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

15 years agoRequire 4 instead of 3 frames for detecting mp3,
Michael Niedermayer [Wed, 22 Apr 2009 02:58:20 +0000 (02:58 +0000)]
Require 4 instead of 3 frames for detecting mp3,
fixes misdetection of mpegps_mp3_unrecognized_format.mpg (issue997)

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

15 years agoFix 10l typo (usage of PIX_FMT_NE()).
Michael Niedermayer [Wed, 22 Apr 2009 02:29:11 +0000 (02:29 +0000)]
Fix 10l typo (usage of PIX_FMT_NE()).
Should fix FATE, i forgot to commit this.

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

15 years agoUpdate safety check as the maximum pixel size is no longer 4.
Michael Niedermayer [Wed, 22 Apr 2009 01:54:05 +0000 (01:54 +0000)]
Update safety check as the maximum pixel size is no longer 4.
New max size is 16bit * 4 samples (RGBA).

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

15 years agoSupport reading packed YUV422 10bit samples from Sveriges Television AB (SVT)
Michael Niedermayer [Wed, 22 Apr 2009 01:50:15 +0000 (01:50 +0000)]
Support reading packed YUV422 10bit samples from Sveriges Television AB (SVT)
which have AFAIK been created for the jvt:
ftp://vqeg.its.bldrdoc.gov/HDTV/SVT_exports/SVT_YUV10_Exports_/NewMobCal_YUV10_720p5994_/
I have called the format v210x due to its similarity to v210, note though I have
not confirmed that v210x is different from actual v210 samples it just is
different from the description of v210 I am aware of.

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

15 years agoMake read_line() do not depend on put_bits.h and speed up it.
Stefano Sabatini [Wed, 22 Apr 2009 00:04:17 +0000 (00:04 +0000)]
Make read_line() do not depend on put_bits.h and speed up it.

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

15 years agoAdd raw MLP muxer.
Ramiro Polla [Tue, 21 Apr 2009 23:23:15 +0000 (23:23 +0000)]
Add raw MLP muxer.

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

15 years agomlpdec: Don't overallocate buffers.
Ramiro Polla [Tue, 21 Apr 2009 22:53:46 +0000 (22:53 +0000)]
mlpdec: Don't overallocate buffers.
Now that max channels and primitive matrices are properly validated, there is
no need to be paranoid that random data will be overwritten.
As a bonus this makes matrix_coeff 16-byte aligned between matrices.

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

15 years agomlpdec: Validate num_primitive_matrices.
Ramiro Polla [Tue, 21 Apr 2009 22:32:50 +0000 (22:32 +0000)]
mlpdec: Validate num_primitive_matrices.

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

15 years agomlpdec: Validate max_channel and max_matrix_channel.
Ramiro Polla [Tue, 21 Apr 2009 22:12:30 +0000 (22:12 +0000)]
mlpdec: Validate max_channel and max_matrix_channel.

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

15 years agomlpdec: Restart header sync must be 0x31ea for MLP.
Ramiro Polla [Tue, 21 Apr 2009 21:57:23 +0000 (21:57 +0000)]
mlpdec: Restart header sync must be 0x31ea for MLP.

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

15 years agoAdd missing header inclusion guard.
Stefano Sabatini [Tue, 21 Apr 2009 21:51:01 +0000 (21:51 +0000)]
Add missing header inclusion guard.

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

15 years agoImplement a write_line() function.
Stefano Sabatini [Tue, 21 Apr 2009 19:15:21 +0000 (19:15 +0000)]
Implement a write_line() function.

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

15 years agoRemove consume_whitespace() and replace it with direct calls to
Stefano Sabatini [Tue, 21 Apr 2009 19:08:49 +0000 (19:08 +0000)]
Remove consume_whitespace() and replace it with direct calls to
strspn().

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

15 years agoRead extended channel configuration when extended AOT is BSAC.
Jai Menon [Tue, 21 Apr 2009 17:52:52 +0000 (17:52 +0000)]
Read extended channel configuration when extended AOT is BSAC.

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

15 years agoMake VLC tables in DCA decoder use INIT_VLC_USE_NEW_STATIC
Kostya Shishkov [Tue, 21 Apr 2009 17:37:03 +0000 (17:37 +0000)]
Make VLC tables in DCA decoder use INIT_VLC_USE_NEW_STATIC

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

15 years ago100l: VLC table array should not be const
Kostya Shishkov [Tue, 21 Apr 2009 17:35:30 +0000 (17:35 +0000)]
100l: VLC table array should not be const

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

15 years agoRemove redundant assignment. err is assigned in every switch case anyway. Issue
Robert Swain [Tue, 21 Apr 2009 12:29:36 +0000 (12:29 +0000)]
Remove redundant assignment. err is assigned in every switch case anyway. Issue
found by CSA.

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

15 years agoFix a possibly exploitable buffer overflow.
Michael Niedermayer [Tue, 21 Apr 2009 12:00:39 +0000 (12:00 +0000)]
Fix a possibly exploitable buffer overflow.

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

15 years agoSet flag after VC-1 VLCs are initialized to avoid race condition
Kostya Shishkov [Tue, 21 Apr 2009 05:42:22 +0000 (05:42 +0000)]
Set flag after VC-1 VLCs are initialized to avoid race condition

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

15 years agoRemove some useless assignments and variables found by Clang
Kostya Shishkov [Tue, 21 Apr 2009 05:24:50 +0000 (05:24 +0000)]
Remove some useless assignments and variables found by Clang

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

15 years agoMake RV3/4 VLC tables use new static initialization method
Kostya Shishkov [Tue, 21 Apr 2009 04:42:27 +0000 (04:42 +0000)]
Make RV3/4 VLC tables use new static initialization method

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

15 years agoPlanar 16bit 420 422 444 YUV support (output is only supported in some
Michael Niedermayer [Tue, 21 Apr 2009 01:08:03 +0000 (01:08 +0000)]
Planar 16bit 420 422 444 YUV support (output is only supported in some
unscaled convertions).
This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome,
we should preserve more bits.

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

15 years agoAdd 420,422 and 444 planar 16bit per component pix formats.
Michael Niedermayer [Tue, 21 Apr 2009 01:02:48 +0000 (01:02 +0000)]
Add 420,422 and  444 planar 16bit per component pix formats.

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

15 years agoMerge gray->gray converters into planarCopy(), this should also make planarCopy()
Michael Niedermayer [Tue, 21 Apr 2009 00:08:06 +0000 (00:08 +0000)]
Merge gray->gray converters into planarCopy(), this should also make planarCopy()
useable for other 16bit formats once we support them.

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

15 years agoAdd macro to check for 16bit per sample.
Michael Niedermayer [Tue, 21 Apr 2009 00:03:00 +0000 (00:03 +0000)]
Add macro to check for 16bit per sample.

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

15 years agoMake sure src/dst are NULL when they arent used, some code uses this to
Michael Niedermayer [Tue, 21 Apr 2009 00:01:59 +0000 (00:01 +0000)]
Make sure src/dst are NULL when they arent used, some code uses this to
simpify checks.

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

15 years agoUse generic BE check instead of checking for gray16LE.
Michael Niedermayer [Mon, 20 Apr 2009 21:05:32 +0000 (21:05 +0000)]
Use generic BE check instead of checking for gray16LE.

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

15 years agoadd isBE()
Michael Niedermayer [Mon, 20 Apr 2009 21:04:55 +0000 (21:04 +0000)]
add isBE()

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

15 years agoFix crash when receiving from SDP
Luca Abeni [Mon, 20 Apr 2009 20:06:55 +0000 (20:06 +0000)]
Fix crash when receiving from SDP

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

15 years agoMake rv40 decoder use new static VLC initialization method
Kostya Shishkov [Mon, 20 Apr 2009 17:13:21 +0000 (17:13 +0000)]
Make rv40 decoder use new static VLC initialization method

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

15 years agoCompact and make constant two tables used by Musepack decoders
Kostya Shishkov [Mon, 20 Apr 2009 15:36:27 +0000 (15:36 +0000)]
Compact and make constant two tables used by Musepack decoders

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

15 years agoRemove example programs with a wildcard expression.
Diego Biurrun [Mon, 20 Apr 2009 11:14:19 +0000 (11:14 +0000)]
Remove example programs with a wildcard expression.

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

15 years agoac3enc: log a warning message if the channel layout is not specified at
Justin Ruggles [Mon, 20 Apr 2009 00:34:08 +0000 (00:34 +0000)]
ac3enc: log a warning message if the channel layout is not specified at
the time of codec initialization.

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

15 years agoindent
Michael Niedermayer [Sun, 19 Apr 2009 21:44:25 +0000 (21:44 +0000)]
indent

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

15 years agoOnly insert null packets into the video que if there is a video stream.
Michael Niedermayer [Sun, 19 Apr 2009 21:44:03 +0000 (21:44 +0000)]
Only insert null packets into the video que if there is a video stream.
Fixes memleak and should fix issue791.

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

15 years agoAdd zygo fourcc.
Michael Niedermayer [Sun, 19 Apr 2009 21:24:36 +0000 (21:24 +0000)]
Add zygo fourcc.

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

15 years agoIndent
Michael Niedermayer [Sun, 19 Apr 2009 20:41:26 +0000 (20:41 +0000)]
Indent

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

15 years agoDo not discard truncated packets.
Michael Niedermayer [Sun, 19 Apr 2009 20:40:56 +0000 (20:40 +0000)]
Do not discard truncated packets.
Based on a patch by Maksym Veremeyenko verem DOT m1stereo AT tv

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

15 years agoAvoid 100% CPU useage at EOF.
Michael Niedermayer [Sun, 19 Apr 2009 20:25:20 +0000 (20:25 +0000)]
Avoid 100% CPU useage at EOF.

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

15 years agoMake sure that video frames are flushed at EOF.
Michael Niedermayer [Sun, 19 Apr 2009 20:24:44 +0000 (20:24 +0000)]
Make sure that video frames are flushed at EOF.
This should fix a regression.

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

15 years agoAdd channel layout support to the AC-3 encoder.
Justin Ruggles [Sun, 19 Apr 2009 15:06:13 +0000 (15:06 +0000)]
Add channel layout support to the AC-3 encoder.

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

15 years agoAdd channel layout support to the AC-3 decoder and AC-3 parser.
Justin Ruggles [Sun, 19 Apr 2009 15:05:32 +0000 (15:05 +0000)]
Add channel layout support to the AC-3 decoder and AC-3 parser.

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

15 years agoCheck that channel layout is compatible with number of channels for
Justin Ruggles [Sun, 19 Apr 2009 14:05:55 +0000 (14:05 +0000)]
Check that channel layout is compatible with number of channels for
output audio stream.

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

15 years agoMark gsize variable as av_unused, fixes the warning:
Diego Biurrun [Sun, 19 Apr 2009 13:29:11 +0000 (13:29 +0000)]
Mark gsize variable as av_unused, fixes the warning:
libavformat/asfdec.c:995: warning: unused variable ‘gsize’

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

15 years agoRevert previous removal of gsize variable. It breaks seeking.
Diego Biurrun [Sun, 19 Apr 2009 11:40:03 +0000 (11:40 +0000)]
Revert previous removal of gsize variable. It breaks seeking.

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

15 years agoRemove unnecessary assignment, found by CSA.
Robert Swain [Sun, 19 Apr 2009 00:55:46 +0000 (00:55 +0000)]
Remove unnecessary assignment, found by CSA.

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

15 years agoAdd LP zero synthesis filter. Patch by Kenan Gillet.
Kenan Gillet [Sat, 18 Apr 2009 22:53:37 +0000 (22:53 +0000)]
Add LP zero synthesis filter. Patch by Kenan Gillet.

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