]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
frescor/ffmpeg.git
15 years agoAdd functions for decoding >16 bits WavPack files.
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

15 years agoShift 9-15 bit samples to use full 16-bit range.
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

15 years agoDisplay dimensions should not affect the real size of coded frame, thus set
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

15 years agoRemove 2 useless FFMIN().
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

15 years agoRemove apparently redundant code.
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

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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18662 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove redundant code, found by CSA
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

15 years agoconfigure: support Blackfin CPU names with --cpu
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

15 years agoIt should be #if, not #ifdef
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

15 years agoSwitch VLC tables in WMV3/VC-1 decoder to new static init method
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

15 years agoRequire 4 instead of 3 frames for detecting mp3,
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

15 years agoFix 10l typo (usage of PIX_FMT_NE()).
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

15 years agoUpdate safety check as the maximum pixel size is no longer 4.
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

15 years agoSupport reading packed YUV 422 10bit samples from jvt (NewMobCal_YUV10_720p5994_).
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

15 years agoMake read_line() do not depend on put_bits.h and speed up it.
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

15 years agoAdd raw MLP muxer.
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

15 years agomlpdec: Don't overallocate buffers.
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

15 years agomlpdec: Validate num_primitive_matrices.
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

15 years agomlpdec: Validate max_channel and max_matrix_channel.
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

15 years agomlpdec: Restart header sync must be 0x31ea for MLP.
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

15 years agoAdd missing header inclusion guard.
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

15 years agoImplement a write_line() function.
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

15 years agoRemove consume_whitespace() and replace it with direct calls to
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

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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18644 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake VLC tables in DCA decoder use INIT_VLC_USE_NEW_STATIC
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

15 years ago100l: VLC table array should not be const
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

15 years agoRemove redundant assignment. err is assigned in every switch case anyway. Issue
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

15 years agoFix a possibly exploitable buffer overflow.
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

15 years agoSet flag after VC-1 VLCs are initialized to avoid race condition
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

15 years agoRemove some useless assignments and variables found by Clang
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

15 years agoMake RV3/4 VLC tables use new static initialization method
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

15 years agoAdd 420,422 and 444 planar 16bit per component pix formats.
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

15 years agoFix crash when receiving from SDP
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

15 years agoMake rv40 decoder use new static VLC initialization method
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

15 years agoCompact and make constant two tables used by Musepack decoders
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

15 years agoRemove example programs with a wildcard expression.
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

15 years agoac3enc: log a warning message if the channel layout is not specified at
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

15 years agoindent
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

15 years agoOnly insert null packets into the video que if there is a video stream.
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

15 years agoAdd zygo fourcc.
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

15 years agoIndent
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

15 years agoDo not discard truncated packets.
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

15 years agoAvoid 100% CPU useage at EOF.
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

15 years agoMake sure that video frames are flushed at EOF.
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

15 years agoAdd channel layout support to the AC-3 encoder.
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

15 years agoAdd channel layout support to the AC-3 decoder and AC-3 parser.
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

15 years agoCheck that channel layout is compatible with number of channels for
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

15 years agoMark gsize variable as av_unused, fixes the warning:
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

15 years agoRevert previous removal of gsize variable. It breaks seeking.
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

15 years agoRemove unnecessary assignment, found by CSA.
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

15 years agoAdd LP zero synthesis filter. Patch by Kenan Gillet.
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

15 years agomlpdec: Read context variable to local variable to make code cleaner.
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

15 years agomlpdec: {}- and whitespace-related cosmetics.
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

15 years agomlpdec: Use some context arrays with local variables in rematrix_channels().
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

15 years agotruehd: Simplify rematrix_channels() as per Michael's original review.
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

15 years agomlpdec: Make read_matrix_params() take unsigned int substr for consistency.
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

15 years agomlpdec: Check for {matrix,filter}_changed as soon as they are incremented.
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

15 years agoAdd 3 channel layout convenience macros.
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

15 years agoAvoid code duplication in xan_unpack for the final memcpy.
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

15 years agoRemove unused variable gsize, fixes the warning:
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

15 years agoPPC: check for x-form asm constraint support
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

15 years agoCosmetics : reindent after last commit and remove redundant comment.
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

15 years agoAdd speex tag to nsv_codec_audio_tags.
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

15 years agoChange nsvf_index_data to nsvs_file_offset for increased clarity.
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

15 years agoPPC asm for AV_RL*()
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

15 years agoARM asm for AV_RN*()
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

15 years agoReorganise intreadwrite.h
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

15 years agoUse sign_extend function instead of reimplementing it.
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

15 years agoRemove a useless "& 0xF"
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

15 years agoUse / and % operators instead of reimplementing them with a loop.
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

15 years agoChange buffer check to avoid an unlikely pointer arithmetic overflow.
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

15 years agoSimplify xan_huffman_decode by using get_bits
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

15 years agoFix indention, patch by Lars Täuber.
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

15 years agoSimplify ipvideo_decode_opcodes by using get_bits, this might be slower
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

15 years agoRemove unused code_counts array from interplavideo.c.
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

15 years agoIntroduce codec id for MPEG-4 ALS and associate it with corresponding
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

15 years agoCosmetics to improve xan_unpack readability
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

15 years agoFix buffer size check for xan_unpack which was broken by r18586
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

15 years agoSome more simplifications of xan_unpack
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

15 years agoReindent xan_unpack code
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

15 years agoAvoid some code duplication in xan_unpack
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

15 years agoRemove useless assignments, at least one found by CSA.
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

15 years agoIncrease buffer padding to avoid most space checks in xan_unpack
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

15 years agoRemove useless init from ff_mpeg4_set_direct_mv() found by CSA.
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

15 years agoRemove a useless assignment in img_get_alpha_info() found by CSA.
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

15 years agoRemove redundant assignment in av_picture_copy() found by CSA.
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

15 years agoRemove useless init from aiff_read_header() found by CSA.
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

15 years agoRemove several useless writes to variables, found by CSA.
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

15 years agoRemove useless += from ff_imdct_half_c() found by CSA.
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

15 years agoRemove 2 ++ from check_pes() that are useless, found by CSA.
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

15 years agoChange buffer size checks to avoid the very unlikely overflow case.
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

15 years agoRemove unused variable from h261_encode_block() found by CSA.
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

15 years agoRemove a pointless right-shift in xan decoder.
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

15 years agoRemove 2 useless assignments from ff_rate_control_init() found by CSA.
michael [Fri, 17 Apr 2009 17:52:58 +0000 (17:52 +0000)]
Remove 2 useless assignments from ff_rate_control_init() found by CSA.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18573 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace bytecopy with the equivalent but faster av_memcpy_backptr.
reimar [Fri, 17 Apr 2009 17:46:10 +0000 (17:46 +0000)]
Replace bytecopy with the equivalent but faster av_memcpy_backptr.
Ca. 10% faster xan_unpack on x86_64 decoding of SC_32-part.MVE

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18572 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove unused variable from flv_read_metabody() found by CSA.
michael [Fri, 17 Apr 2009 17:42:41 +0000 (17:42 +0000)]
Remove unused variable from flv_read_metabody() found by CSA.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18571 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove unused variable from slice_buffer_release() found by CSA.
michael [Fri, 17 Apr 2009 17:39:09 +0000 (17:39 +0000)]
Remove unused variable from slice_buffer_release() found by CSA.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18570 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse memcpy instead of the very inefficient bytecopy where both are correct
reimar [Fri, 17 Apr 2009 17:20:48 +0000 (17:20 +0000)]
Use memcpy instead of the very inefficient bytecopy where both are correct
(i.e. no overlap of src and dst is possible).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18569 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove unused variable from wma_decode_block() found by CSA.
michael [Fri, 17 Apr 2009 15:35:32 +0000 (15:35 +0000)]
Remove unused variable from wma_decode_block() found by CSA.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18568 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove unneeded assignment from av_encode() found by CSA.
michael [Fri, 17 Apr 2009 15:33:45 +0000 (15:33 +0000)]
Remove unneeded assignment from av_encode() found by CSA.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18567 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b