]>
rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
michael [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18674
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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 decission of gcc would lead to a 10% overall speed loss.
100k smaller object file, no speed change
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18673
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 24 Apr 2009 00:26:49 +0000 (00:26 +0000)]
Optimize sign handling in get_symbol().
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18672
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Thu, 23 Apr 2009 23:30:16 +0000 (23:30 +0000)]
Don't loose bits_per_raw_sample when transcoding.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18671
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
stefano [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18670
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ivo [Thu, 23 Apr 2009 18:44:03 +0000 (18:44 +0000)]
avoid possibly uninitialized return value
(found by clang static analyzer)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18669
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Thu, 23 Apr 2009 18:21:16 +0000 (18:21 +0000)]
Handle WavPack INT32INFO chunks with nonzero post shift
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18668
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [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)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18667
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [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
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18666
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18665
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Wed, 22 Apr 2009 22:05:34 +0000 (22:05 +0000)]
Remove 2 useless FFMIN().
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18664
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Wed, 22 Apr 2009 21:44:41 +0000 (21:44 +0000)]
Remove apparently redundant code.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18663
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jai_menon [Wed, 22 Apr 2009 19:37:57 +0000 (19:37 +0000)]
NSV : Add TOC2 parsing and seeking support.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18662
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
banan [Wed, 22 Apr 2009 13:52:33 +0000 (13:52 +0000)]
Remove redundant code, found by CSA
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18661
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
mru [Wed, 22 Apr 2009 09:27:36 +0000 (09:27 +0000)]
configure: support Blackfin CPU names with --cpu
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18660
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
andoma [Wed, 22 Apr 2009 08:39:46 +0000 (08:39 +0000)]
It should be #if, not #ifdef
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18659
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Wed, 22 Apr 2009 05:20:31 +0000 (05:20 +0000)]
Switch VLC tables in WMV3/VC-1 decoder to new static init method
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18658
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18657
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18656
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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).
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18655
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Wed, 22 Apr 2009 01:50:15 +0000 (01:50 +0000)]
Support reading packed YUV 422 10bit samples from jvt (NewMobCal_YUV10_720p5994_).
Ive called the format v210x due to its similarity to v210, note though ive not
confirmed that v210x is different from actual v210 samples it just is different
from the description of v210 iam aware of.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18654
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
stefano [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18653
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Tue, 21 Apr 2009 23:23:15 +0000 (23:23 +0000)]
Add raw MLP muxer.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18652
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18651
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Tue, 21 Apr 2009 22:32:50 +0000 (22:32 +0000)]
mlpdec: Validate num_primitive_matrices.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18650
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Tue, 21 Apr 2009 22:12:30 +0000 (22:12 +0000)]
mlpdec: Validate max_channel and max_matrix_channel.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18649
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Tue, 21 Apr 2009 21:57:23 +0000 (21:57 +0000)]
mlpdec: Restart header sync must be 0x31ea for MLP.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18648
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
stefano [Tue, 21 Apr 2009 21:51:01 +0000 (21:51 +0000)]
Add missing header inclusion guard.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18647
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
stefano [Tue, 21 Apr 2009 19:15:21 +0000 (19:15 +0000)]
Implement a write_line() function.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18646
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
stefano [Tue, 21 Apr 2009 19:08:49 +0000 (19:08 +0000)]
Remove consume_whitespace() and replace it with direct calls to
strspn().
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18645
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jai_menon [Tue, 21 Apr 2009 17:52:52 +0000 (17:52 +0000)]
Read extended channel configuration when extended AOT is BSAC.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18644
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Tue, 21 Apr 2009 17:37:03 +0000 (17:37 +0000)]
Make VLC tables in DCA decoder use INIT_VLC_USE_NEW_STATIC
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18643
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Tue, 21 Apr 2009 17:35:30 +0000 (17:35 +0000)]
100l: VLC table array should not be const
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18642
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
superdump [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18641
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Tue, 21 Apr 2009 12:00:39 +0000 (12:00 +0000)]
Fix a possibly exploitable buffer overflow.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18640
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Tue, 21 Apr 2009 05:42:22 +0000 (05:42 +0000)]
Set flag after VC-1 VLCs are initialized to avoid race condition
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18639
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Tue, 21 Apr 2009 05:24:50 +0000 (05:24 +0000)]
Remove some useless assignments and variables found by Clang
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18638
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Tue, 21 Apr 2009 04:42:27 +0000 (04:42 +0000)]
Make RV3/4 VLC tables use new static initialization method
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18637
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Tue, 21 Apr 2009 01:02:48 +0000 (01:02 +0000)]
Add 420,422 and 444 planar 16bit per component pix formats.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18636
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
lucabe [Mon, 20 Apr 2009 20:06:55 +0000 (20:06 +0000)]
Fix crash when receiving from SDP
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18635
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Mon, 20 Apr 2009 17:13:21 +0000 (17:13 +0000)]
Make rv40 decoder use new static VLC initialization method
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18634
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
kostya [Mon, 20 Apr 2009 15:36:27 +0000 (15:36 +0000)]
Compact and make constant two tables used by Musepack decoders
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18633
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
diego [Mon, 20 Apr 2009 11:14:19 +0000 (11:14 +0000)]
Remove example programs with a wildcard expression.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18632
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jbr [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18631
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Sun, 19 Apr 2009 21:44:25 +0000 (21:44 +0000)]
indent
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18630
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18629
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Sun, 19 Apr 2009 21:24:36 +0000 (21:24 +0000)]
Add zygo fourcc.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18628
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Sun, 19 Apr 2009 20:41:26 +0000 (20:41 +0000)]
Indent
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18627
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18626
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Sun, 19 Apr 2009 20:25:20 +0000 (20:25 +0000)]
Avoid 100% CPU useage at EOF.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18625
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18624
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jbr [Sun, 19 Apr 2009 15:06:13 +0000 (15:06 +0000)]
Add channel layout support to the AC-3 encoder.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18623
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jbr [Sun, 19 Apr 2009 15:05:32 +0000 (15:05 +0000)]
Add channel layout support to the AC-3 decoder and AC-3 parser.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18622
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jbr [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.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18621
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
diego [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’
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18620
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
diego [Sun, 19 Apr 2009 11:40:03 +0000 (11:40 +0000)]
Revert previous removal of gsize variable. It breaks seeking.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18618
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
superdump [Sun, 19 Apr 2009 00:55:46 +0000 (00:55 +0000)]
Remove unnecessary assignment, found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18617
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reynaldo [Sat, 18 Apr 2009 22:53:37 +0000 (22:53 +0000)]
Add LP zero synthesis filter. Patch by Kenan Gillet.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18616
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Sat, 18 Apr 2009 20:23:13 +0000 (20:23 +0000)]
mlpdec: Read context variable to local variable to make code cleaner.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18615
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Sat, 18 Apr 2009 19:52:52 +0000 (19:52 +0000)]
mlpdec: {}- and whitespace-related cosmetics.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18614
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Sat, 18 Apr 2009 19:46:41 +0000 (19:46 +0000)]
mlpdec: Use some context arrays with local variables in rematrix_channels().
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18613
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Sat, 18 Apr 2009 19:39:07 +0000 (19:39 +0000)]
truehd: Simplify rematrix_channels() as per Michael's original review.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18612
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Sat, 18 Apr 2009 18:54:30 +0000 (18:54 +0000)]
mlpdec: Make read_matrix_params() take unsigned int substr for consistency.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18611
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
ramiro [Sat, 18 Apr 2009 18:51:43 +0000 (18:51 +0000)]
mlpdec: Check for {matrix,filter}_changed as soon as they are incremented.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18610
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jbr [Sat, 18 Apr 2009 18:51:01 +0000 (18:51 +0000)]
Add 3 channel layout convenience macros.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18609
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Sat, 18 Apr 2009 17:26:00 +0000 (17:26 +0000)]
Avoid code duplication in xan_unpack for the final memcpy.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18608
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
diego [Sat, 18 Apr 2009 15:01:20 +0000 (15:01 +0000)]
Remove unused variable gsize, fixes the warning:
libavformat/asfdec.c:995: warning: unused variable 'gsize'
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18607
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
mru [Sat, 18 Apr 2009 13:57:30 +0000 (13:57 +0000)]
PPC: check for x-form asm constraint support
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18606
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jai_menon [Sat, 18 Apr 2009 08:35:46 +0000 (08:35 +0000)]
Cosmetics : reindent after last commit and remove redundant comment.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18605
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jai_menon [Sat, 18 Apr 2009 08:34:15 +0000 (08:34 +0000)]
Add speex tag to nsv_codec_audio_tags.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18604
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jai_menon [Sat, 18 Apr 2009 05:54:47 +0000 (05:54 +0000)]
Change nsvf_index_data to nsvs_file_offset for increased clarity.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18603
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
mru [Sat, 18 Apr 2009 00:00:31 +0000 (00:00 +0000)]
PPC asm for AV_RL*()
PPC is normally big endian but has special little endian load/store
instructions. Using these avoids a separate byteswap. This makes the
vorbis decoder about 5% faster. Not much else uses little-endian
read/write extensively.
GCC generates horrible PPC code for the default AV_[RW]B64 (which uses
a packed struct), so we override it with a plain pointer cast.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18602
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
mru [Sat, 18 Apr 2009 00:00:28 +0000 (00:00 +0000)]
ARM asm for AV_RN*()
ARMv6 and later support unaligned loads and stores for single
word/halfword but not double/multiple. GCC is ignorant of this and
will always use bytewise accesses for unaligned data. Casting to an
int32_t pointer is dangerous since a load/store double or multiple
instruction might be used (this happens with some code in FFmpeg).
Implementing the AV_[RW]* macros with inline asm using only supported
instructions gives fast and safe unaligned accesses. ARM RVCT does
the right thing with generic code.
This gives an overall speedup of up to 10%.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18601
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
mru [Sat, 18 Apr 2009 00:00:22 +0000 (00:00 +0000)]
Reorganise intreadwrite.h
This changes intreadwrite.h to support per-arch implementations of the
various macros allowing us to take advantage of special instructions
or other properties the compiler does not know about.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18600
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 20:05:27 +0000 (20:05 +0000)]
Use sign_extend function instead of reimplementing it.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18599
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 20:01:45 +0000 (20:01 +0000)]
Remove a useless "& 0xF"
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18598
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:56:50 +0000 (19:56 +0000)]
Use / and % operators instead of reimplementing them with a loop.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18597
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:49:55 +0000 (19:49 +0000)]
Change buffer check to avoid an unlikely pointer arithmetic overflow.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18596
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:48:54 +0000 (19:48 +0000)]
Simplify xan_huffman_decode by using get_bits
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18595
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 19:29:54 +0000 (19:29 +0000)]
Fix indention, patch by Lars Täuber.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18594
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:28:36 +0000 (19:28 +0000)]
Simplify ipvideo_decode_opcodes by using get_bits, this might be slower
but is not performance-critical anyway.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18593
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:21:50 +0000 (19:21 +0000)]
Remove unused code_counts array from interplavideo.c.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18592
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
jai_menon [Fri, 17 Apr 2009 19:17:14 +0000 (19:17 +0000)]
Introduce codec id for MPEG-4 ALS and associate it with corresponding
AudioObjectType. Also bump libavcodec minor version.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18591
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:14:11 +0000 (19:14 +0000)]
Cosmetics to improve xan_unpack readability
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18590
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:07:16 +0000 (19:07 +0000)]
Fix buffer size check for xan_unpack which was broken by r18586
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18589
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 19:03:43 +0000 (19:03 +0000)]
Some more simplifications of xan_unpack
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18588
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 18:56:47 +0000 (18:56 +0000)]
Reindent xan_unpack code
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18587
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 18:54:17 +0000 (18:54 +0000)]
Avoid some code duplication in xan_unpack
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18586
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:28:59 +0000 (18:28 +0000)]
Remove useless assignments, at least one found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18585
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 18:26:24 +0000 (18:26 +0000)]
Increase buffer padding to avoid most space checks in xan_unpack
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18584
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:24:39 +0000 (18:24 +0000)]
Remove useless init from ff_mpeg4_set_direct_mv() found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18583
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:22:19 +0000 (18:22 +0000)]
Remove a useless assignment in img_get_alpha_info() found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18582
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:20:12 +0000 (18:20 +0000)]
Remove redundant assignment in av_picture_copy() found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18581
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:18:29 +0000 (18:18 +0000)]
Remove useless init from aiff_read_header() found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18580
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:16:36 +0000 (18:16 +0000)]
Remove several useless writes to variables, found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18579
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:12:00 +0000 (18:12 +0000)]
Remove useless += from ff_imdct_half_c() found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18578
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 18:08:39 +0000 (18:08 +0000)]
Remove 2 ++ from check_pes() that are useless, found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18577
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 18:03:00 +0000 (18:03 +0000)]
Change buffer size checks to avoid the very unlikely overflow case.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18576
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
michael [Fri, 17 Apr 2009 17:56:16 +0000 (17:56 +0000)]
Remove unused variable from h261_encode_block() found by CSA.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18575
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b
reimar [Fri, 17 Apr 2009 17:54:55 +0000 (17:54 +0000)]
Remove a pointless right-shift in xan decoder.
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18574
9553f0bf -9b14-0410-a0b8-
cfaf0461ba5b