]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
frescor/ffmpeg.git
14 years agoDecoder for LPCM as used in Bluray discs.
cehoyos [Wed, 26 Aug 2009 22:10:35 +0000 (22:10 +0000)]
Decoder for LPCM as used in Bluray discs.

Patch by Christian Schmidt, schmidt digadd de

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

14 years agoIgnore .d files.
diego [Wed, 26 Aug 2009 22:07:23 +0000 (22:07 +0000)]
Ignore .d files.

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

14 years agoFix comments after switching from CABAC to range coder in r3658.
cehoyos [Wed, 26 Aug 2009 21:25:43 +0000 (21:25 +0000)]
Fix comments after switching from CABAC to range coder in r3658.

Patch by Lars Täuber, lars D taeuber A gmx D net

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

14 years agoadd decode_coeffs()
faust3 [Wed, 26 Aug 2009 21:23:21 +0000 (21:23 +0000)]
add decode_coeffs()

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

14 years agomerge 2-channel M/S stereo decoding code with the multichannel version
faust3 [Wed, 26 Aug 2009 21:18:54 +0000 (21:18 +0000)]
merge 2-channel M/S stereo decoding code with the multichannel version

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

14 years ago4xm: provide 16-byte alignment where required
mru [Wed, 26 Aug 2009 15:22:15 +0000 (15:22 +0000)]
4xm: provide 16-byte alignment where required

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

14 years agodsputil: declare some arrays 16-byte aligned
mru [Wed, 26 Aug 2009 13:17:06 +0000 (13:17 +0000)]
dsputil: declare some arrays 16-byte aligned

These arrays are passed to functions for which we promise 16-byte
alignment, so make sure we fulfil that promise.

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

14 years agoRemove some unnecessary alignment specifiers
mru [Wed, 26 Aug 2009 12:12:40 +0000 (12:12 +0000)]
Remove some unnecessary alignment specifiers

None of these arrays are used in ways requiring extra alignment.

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

14 years agoAlways allocate a buffer of AVPALETTE_SIZE for palette in the
cehoyos [Wed, 26 Aug 2009 11:31:37 +0000 (11:31 +0000)]
Always allocate a buffer of AVPALETTE_SIZE for palette in the
Bluray subtitle decoder instead of as small as possible.
This avoids completely unnecessary issues with e.g. libswscale.
(See r19673)

Patch by Stephen Backway, stev391 A exemail D com D au

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

14 years agoIncrease maximum encoded subtitle size from 64 kB to 1 MB.
reimar [Wed, 26 Aug 2009 10:22:27 +0000 (10:22 +0000)]
Increase maximum encoded subtitle size from 64 kB to 1 MB.
Fixes "dvd_subtitle too big" errors when encoding HD video subtitles
to DVD format.

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

14 years ago100l typo, xsub encoder printed end time hours where minutes should have been.
reimar [Wed, 26 Aug 2009 10:08:00 +0000 (10:08 +0000)]
100l typo, xsub encoder printed end time hours where minutes should have been.

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

14 years ago100l, inv_zigzag_direct16 must be aligned to 16 bytes for dct_quantize_SSE2
reimar [Wed, 26 Aug 2009 09:10:51 +0000 (09:10 +0000)]
100l, inv_zigzag_direct16 must be aligned to 16 bytes for dct_quantize_SSE2
(which uses movdqa to xmm1 on inv_zigzag_direct16).

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

14 years agoMake sure that start_display_time is 0 by moving its value onto pts.
reimar [Wed, 26 Aug 2009 08:43:11 +0000 (08:43 +0000)]
Make sure that start_display_time is 0 by moving its value onto pts.
If it was not 0, subtitle encoding would fail.

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

14 years agoCheck for seek failures in avi_load_index, otherwise if the index offset
reimar [Wed, 26 Aug 2009 08:38:44 +0000 (08:38 +0000)]
Check for seek failures in avi_load_index, otherwise if the index offset
is invalid (e.g. truncated file) we might end up reading the whole file
since trying to seek beyond the end of file does not set EOF.

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

14 years agoReindent.
reimar [Wed, 26 Aug 2009 01:29:10 +0000 (01:29 +0000)]
Reindent.

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

14 years agoRemove now dead code.
reimar [Wed, 26 Aug 2009 01:28:41 +0000 (01:28 +0000)]
Remove now dead code.

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

14 years agoApply r19642 also pgssubdec:
reimar [Wed, 26 Aug 2009 01:27:58 +0000 (01:27 +0000)]
Apply r19642 also pgssubdec:
Make sure AVSubtitle is initialized, memset it to 0.

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

14 years agomdec: remove unused members from struct MDECContext
mru [Tue, 25 Aug 2009 23:28:33 +0000 (23:28 +0000)]
mdec: remove unused members from struct MDECContext

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

14 years agoRemove explicit init to zero of static inv_zigzag_direct16
mru [Tue, 25 Aug 2009 23:28:30 +0000 (23:28 +0000)]
Remove explicit init to zero of static inv_zigzag_direct16

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

14 years agowhitespace cosmetics
diego [Tue, 25 Aug 2009 20:02:30 +0000 (20:02 +0000)]
whitespace cosmetics

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

14 years agoreturn AVERROR(ENOMEM) if stream could not be allocated
bcoudurier [Tue, 25 Aug 2009 19:59:38 +0000 (19:59 +0000)]
return AVERROR(ENOMEM) if stream could not be allocated

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

14 years agocheck av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu
bcoudurier [Tue, 25 Aug 2009 19:58:21 +0000 (19:58 +0000)]
check av_new_stream return value, patch by Kent Mein, mein at cs dot umn dot edu

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

14 years agoDo not read index chunks as audio/video data; closes issue 1336.
diego [Tue, 25 Aug 2009 09:46:16 +0000 (09:46 +0000)]
Do not read index chunks as audio/video data; closes issue 1336.
patch by Maksym Veremeyenko, verem m1stereo tv

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

14 years agoAdd Bluray Subtitle Support
cehoyos [Tue, 25 Aug 2009 08:47:39 +0000 (08:47 +0000)]
Add Bluray Subtitle Support

Patch by Stephen Backway, stev391 A exemail D com D au

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

14 years agoMark video from .mtv files correctly as upside-down.
reimar [Tue, 25 Aug 2009 07:47:34 +0000 (07:47 +0000)]
Mark video from .mtv files correctly as upside-down.

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

14 years agompegts: change variable-length array to fixed length
mru [Mon, 24 Aug 2009 21:42:25 +0000 (21:42 +0000)]
mpegts: change variable-length array to fixed length

The difference between 188 and 204 is not worth worrying about.

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

14 years agoPPC: remove unnecessary alignment on local variables
mru [Mon, 24 Aug 2009 21:42:22 +0000 (21:42 +0000)]
PPC: remove unnecessary alignment on local variables

Storing a single element from a vector where all elements have the same
value does not require an aligned destination.  Which element is stored
depends on the alignment of the destination address, but since they all
have the same value, the result is the same regardless of the alignment.

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

14 years agoCosmetics: add some whitespace around operators
vitor [Mon, 24 Aug 2009 17:35:47 +0000 (17:35 +0000)]
Cosmetics: add some whitespace around operators

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

14 years agomatroskadec: add correct extradata offset for V_MS/VFW/FOURCC tracks
aurel [Mon, 24 Aug 2009 13:43:33 +0000 (13:43 +0000)]
matroskadec: add correct extradata offset for V_MS/VFW/FOURCC tracks

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

14 years agomatroskadec: factorize some code
aurel [Mon, 24 Aug 2009 13:40:30 +0000 (13:40 +0000)]
matroskadec: factorize some code

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

14 years agoAdd necessary #include for config.h.
diego [Mon, 24 Aug 2009 10:59:14 +0000 (10:59 +0000)]
Add necessary #include for config.h.

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

14 years agoPPC: simplify loading some values into altivec registers
mru [Mon, 24 Aug 2009 10:36:13 +0000 (10:36 +0000)]
PPC: simplify loading some values into altivec registers

Instead of filling a local array with the desired value and loading it,
load a single element and vec_splat() it to fill the vector.

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

14 years agoAdd missing header to fix 'make checkheaders'.
diego [Mon, 24 Aug 2009 10:06:26 +0000 (10:06 +0000)]
Add missing header to fix 'make checkheaders'.

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

14 years agoAdd myself as maintainer for AVR32 and MIPS
mru [Sun, 23 Aug 2009 15:39:42 +0000 (15:39 +0000)]
Add myself as maintainer for AVR32 and MIPS

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

14 years agoconfigure: fix filter() function when matching multiple patterns
mru [Sun, 23 Aug 2009 15:39:39 +0000 (15:39 +0000)]
configure: fix filter() function when matching multiple patterns

This makes comma-separated patters to --disable-decoder and friends
work correctly with POSIX-compliant shells.

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

14 years agoAdd PIC flags early so tests they affect give correct results
mru [Sun, 23 Aug 2009 13:46:07 +0000 (13:46 +0000)]
Add PIC flags early so tests they affect give correct results

This is mainly the checks for ebx on x86, but possibly others too.

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

14 years agoInclude required headers in {mips,ppc}/mathops.h
mru [Sun, 23 Aug 2009 11:02:41 +0000 (11:02 +0000)]
Include required headers in {mips,ppc}/mathops.h

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

14 years agoSkip headers requiring external libs not present in checkheaders
mru [Sun, 23 Aug 2009 11:02:37 +0000 (11:02 +0000)]
Skip headers requiring external libs not present in checkheaders

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

14 years agoconfigure: simplify directory creation for out of tree builds
mru [Sun, 23 Aug 2009 11:02:35 +0000 (11:02 +0000)]
configure: simplify directory creation for out of tree builds

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

14 years agoFix dependency generation for yasm assembler files
mru [Sun, 23 Aug 2009 11:02:32 +0000 (11:02 +0000)]
Fix dependency generation for yasm assembler files

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

14 years agoTwinVQ decoder
vitor [Sun, 23 Aug 2009 01:55:54 +0000 (01:55 +0000)]
TwinVQ decoder

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

14 years agoUse generic multi-stream key frame finding routine to implement read_seek2 and map
schreter [Sat, 22 Aug 2009 16:07:50 +0000 (16:07 +0000)]
Use generic multi-stream key frame finding routine to implement read_seek2 and map
read_seek to read_seek2.

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

14 years agoSupport for generic multi-stream key frame finding for new seek API.
schreter [Sat, 22 Aug 2009 16:05:43 +0000 (16:05 +0000)]
Support for generic multi-stream key frame finding for new seek API.

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

14 years agobring back some randomness in fft-test. (regression in r18070)
lorenm [Sat, 22 Aug 2009 15:56:06 +0000 (15:56 +0000)]
bring back some randomness in fft-test. (regression in r18070)

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

14 years agoAdd some more wmapro decoder hunks
faust3 [Fri, 21 Aug 2009 16:54:42 +0000 (16:54 +0000)]
Add some more wmapro decoder hunks

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

14 years agoReplace redundant GNUC_PREREQ macro by AV_GCC_VERSION_AT_LEAST from libavutil.
diego [Fri, 21 Aug 2009 10:10:42 +0000 (10:10 +0000)]
Replace redundant GNUC_PREREQ macro by AV_GCC_VERSION_AT_LEAST from libavutil.

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

14 years agoReplace #ifdef PIC checks with the more appropriate HAVE_EBX_AVAILABLE/HAVE_7REGS.
reimar [Fri, 21 Aug 2009 09:54:28 +0000 (09:54 +0000)]
Replace #ifdef PIC checks with the more appropriate HAVE_EBX_AVAILABLE/HAVE_7REGS.

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

14 years agoAdd missing #includes to pass 'make checkheaders'.
diego [Fri, 21 Aug 2009 08:46:49 +0000 (08:46 +0000)]
Add missing #includes to pass 'make checkheaders'.

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

14 years agoAdd support for S/PDIF encapsulation.
bwolowiec [Fri, 21 Aug 2009 08:34:19 +0000 (08:34 +0000)]
Add support for S/PDIF encapsulation.

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

14 years agoAlways allocate a buffer of AVPALETTE_SIZE for palette in the subtitle
reimar [Thu, 20 Aug 2009 18:54:50 +0000 (18:54 +0000)]
Always allocate a buffer of AVPALETTE_SIZE for palette in the subtitle
decoders instead of as small as possible.
This avoids completely unnecessary issues with e.g. libswscale.

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

14 years agoconfigure: add --enable-pic flag
mru [Thu, 20 Aug 2009 01:06:18 +0000 (01:06 +0000)]
configure: add --enable-pic flag

Using this flag enables position-independent code even when not strictly
required.  It is impossible to use --disable-pic to forcibly disable PIC
when other properties mandate it.

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

14 years agoGet rid of large stack array in rd8x8_c()
mru [Wed, 19 Aug 2009 21:59:44 +0000 (21:59 +0000)]
Get rid of large stack array in rd8x8_c()

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

14 years agoeval: replace variable-length array with av_malloc/free
mru [Wed, 19 Aug 2009 21:59:40 +0000 (21:59 +0000)]
eval: replace variable-length array with av_malloc/free

There is a theoretical possibility to pass a very long string to ff_parse,
which could crash if allocated from the stack.  This allows the allocation
to be checked properly.

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

14 years agoflacdec: change variable-length array to fixed length
mru [Wed, 19 Aug 2009 21:59:36 +0000 (21:59 +0000)]
flacdec: change variable-length array to fixed length

pred_order can never exceed 32, so always allocating that amount is safe
and not very wasteful.

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

14 years agoRemove disabled code cruft.
diego [Wed, 19 Aug 2009 08:15:32 +0000 (08:15 +0000)]
Remove disabled code cruft.

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

14 years agoAVR32: optimised mathops.h
mru [Mon, 17 Aug 2009 02:23:53 +0000 (02:23 +0000)]
AVR32: optimised mathops.h

44% faster MP3 decoding

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

14 years agoUse the AOT enum instead of integer literals for setting and comparing audio
alexc [Mon, 17 Aug 2009 00:17:58 +0000 (00:17 +0000)]
Use the AOT enum instead of integer literals for setting and comparing audio
object types.

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

14 years agoAVR32: optimisations for intreadwrite.h
mru [Mon, 17 Aug 2009 00:15:53 +0000 (00:15 +0000)]
AVR32: optimisations for intreadwrite.h

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

14 years agoAVR32: inline asm for bswap.h
mru [Mon, 17 Aug 2009 00:15:51 +0000 (00:15 +0000)]
AVR32: inline asm for bswap.h

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

14 years agoconfigure: add AVR32 names for --cpu flag
mru [Mon, 17 Aug 2009 00:15:48 +0000 (00:15 +0000)]
configure: add AVR32 names for --cpu flag

Recognise AVR32 processor names as well as the generic "ap" and "uc"
family names as values for --cpu.  Also define two subtypes, avr32_ap
and avr32_uc.

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

14 years agoMark the AOT escape value as supported.
alexc [Mon, 17 Aug 2009 00:15:02 +0000 (00:15 +0000)]
Mark the AOT escape value as supported.

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

14 years agoAdd USAC and SAOC AOTs to the AudioObjectType enum.
alexc [Mon, 17 Aug 2009 00:14:10 +0000 (00:14 +0000)]
Add USAC and SAOC AOTs to the AudioObjectType enum.

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

14 years agoMIPS: 100L: fix AV_[RW]N64 on MIPS64
mru [Sun, 16 Aug 2009 18:43:36 +0000 (18:43 +0000)]
MIPS: 100L: fix AV_[RW]N64 on MIPS64

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

14 years agocosmetics: reformat intreadwrite.h
mru [Sun, 16 Aug 2009 18:06:25 +0000 (18:06 +0000)]
cosmetics: reformat intreadwrite.h

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

14 years agointreadwrite: ensure arch-specific versions are always used if defined
mru [Sun, 16 Aug 2009 15:51:55 +0000 (15:51 +0000)]
intreadwrite: ensure arch-specific versions are always used if defined

The per-arch headers can define any combination of B/L/N variants.
This ensures that whatever is defined in an arch header gets used
for all equivalents not defined there.  E.g. on a little-endian
machine, AV_RN and AV_RL should give the same code.

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

14 years agointreadwrite: allow arch-specific 24-bit access macros
mru [Sun, 16 Aug 2009 15:51:52 +0000 (15:51 +0000)]
intreadwrite: allow arch-specific 24-bit access macros

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

14 years agoARM: first value loaded in AV_RN64 needs to be early-clobber
mru [Sun, 16 Aug 2009 15:51:50 +0000 (15:51 +0000)]
ARM: first value loaded in AV_RN64 needs to be early-clobber

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

14 years agoversion.sh: use standard sed syntax
mru [Sun, 16 Aug 2009 15:51:47 +0000 (15:51 +0000)]
version.sh: use standard sed syntax

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

14 years agoUse pkg-config to generate the linker flags for libdirac.
diego [Sat, 15 Aug 2009 12:35:15 +0000 (12:35 +0000)]
Use pkg-config to generate the linker flags for libdirac.
We do the same for libschroedinger and already use pkg-config to generate
the CFLAGS for libdirac anyway, so there is no new dependency.
Thanks to Kovensky for reporting breakage on IRC.

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

14 years agoFix bug caused by difference in stride and picture width.
diego [Sat, 15 Aug 2009 11:59:53 +0000 (11:59 +0000)]
Fix bug caused by difference in stride and picture width.

When a frame is allocated using libschroedinger routines, the frame data size
does not match the actual frame size if the width is not a multiple of 16. So
we cannot do a straightforward memcpy of the frame returned by libschroedinger
into the FFmpeg picture as the stride differs from the width.

Fix this bug by allocating for the libschroedinger frame with the dimensions
in AVCodecContext within libavcodec and passing the frame to libschroedinger.

patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

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

14 years agocosmetics: indentation, prettyprinting, K&R coding style
diego [Sat, 15 Aug 2009 11:42:15 +0000 (11:42 +0000)]
cosmetics: indentation, prettyprinting, K&R coding style

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

14 years agoDrop some more useless braces around if/for constructs.
diego [Sat, 15 Aug 2009 11:32:11 +0000 (11:32 +0000)]
Drop some more useless braces around if/for constructs.

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

14 years agoSimplify another 'if' condition: Replace 'exp == 0' by '!exp'.
diego [Sat, 15 Aug 2009 11:31:42 +0000 (11:31 +0000)]
Simplify another 'if' condition: Replace 'exp == 0' by '!exp'.

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

14 years agoAdd a function that can apply an order 2 rational transfer function in-place.
superdump [Sat, 15 Aug 2009 11:22:55 +0000 (11:22 +0000)]
Add a function that can apply an order 2 rational transfer function in-place.
This function will be used in the upcoming AMR-NB floating point decoder for
high-pass filtering.

Patch by Colin McQuillan ( m.niloc googlemail com )

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

14 years agoRemove useless braces.
diego [Sat, 15 Aug 2009 11:12:47 +0000 (11:12 +0000)]
Remove useless braces.

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

14 years agoSimplify 'if' condition statements.
diego [Sat, 15 Aug 2009 11:02:50 +0000 (11:02 +0000)]
Simplify 'if' condition statements.
Drop useless '!= 0' from 'exp != 0', replace 'exp == 0' by '!exp'.

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

14 years agoFix start_display_time/end_display_time to be relative to packet pts in xsub decoder.
reimar [Sat, 15 Aug 2009 09:12:58 +0000 (09:12 +0000)]
Fix start_display_time/end_display_time to be relative to packet pts in xsub decoder.
Makes no difference for the sample AVI files since they all have no packet pts values.

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

14 years agoReindent.
reimar [Sat, 15 Aug 2009 00:58:26 +0000 (00:58 +0000)]
Reindent.

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

14 years agoRemove code that is now dead.
reimar [Sat, 15 Aug 2009 00:57:24 +0000 (00:57 +0000)]
Remove code that is now dead.

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

14 years agoSimplify initialization of AVSubtitle by using memset.
reimar [Sat, 15 Aug 2009 00:52:41 +0000 (00:52 +0000)]
Simplify initialization of AVSubtitle by using memset.

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

14 years agoMake sure AVSubtitle is initialized, memset it to 0.
reimar [Sat, 15 Aug 2009 00:46:33 +0000 (00:46 +0000)]
Make sure AVSubtitle is initialized, memset it to 0.

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

14 years ago100l, error out if subtitle encoder failed instead of writing an AVPacket
reimar [Sat, 15 Aug 2009 00:37:31 +0000 (00:37 +0000)]
100l, error out if subtitle encoder failed instead of writing an AVPacket
with ridiculous size and thus crashing.

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

14 years agoFix cmd_pos bounds check to avoid the overflow case.
reimar [Sat, 15 Aug 2009 00:02:42 +0000 (00:02 +0000)]
Fix cmd_pos bounds check to avoid the overflow case.

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

14 years agoFix typo.
cehoyos [Fri, 14 Aug 2009 16:41:21 +0000 (16:41 +0000)]
Fix typo.

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

14 years ago10L: remove instruction left over from debugging
mru [Fri, 14 Aug 2009 01:05:48 +0000 (01:05 +0000)]
10L: remove instruction left over from debugging

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

14 years agoARM: NEON optimised vorbis_inverse_coupling
mru [Fri, 14 Aug 2009 01:02:06 +0000 (01:02 +0000)]
ARM: NEON optimised vorbis_inverse_coupling

12% faster Vorbis decoding on Cortex-A8.

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

14 years agoIntroduce av_clip_uint16().
ramiro [Thu, 13 Aug 2009 18:47:13 +0000 (18:47 +0000)]
Introduce av_clip_uint16().

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

14 years agoIgnore generated dependency files.
diego [Thu, 13 Aug 2009 09:42:04 +0000 (09:42 +0000)]
Ignore generated dependency files.

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

14 years agoAdd ff_celp_circ_addf() function to be used for sparse vector circular
superdump [Wed, 12 Aug 2009 19:54:28 +0000 (19:54 +0000)]
Add ff_celp_circ_addf() function to be used for sparse vector circular
convolution in the upcoming AMR-NB floating point decoder. The function scales
and adds a vector, that is lagged by some offset, to another vector with the
same number of elements.

Patch by Colin McQuillan ( m.niloc googlemail com )

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

14 years agoFix a memleak with win32 threads: the handle returned by _beginthreadex
reimar [Wed, 12 Aug 2009 13:25:37 +0000 (13:25 +0000)]
Fix a memleak with win32 threads: the handle returned by _beginthreadex
must be closed (this differs from _beginthread).
Patch by Shehzad Salim (shehzadsalim gmail com)

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

14 years agoMoves the display of metadata to dump_format()
pross [Wed, 12 Aug 2009 13:17:39 +0000 (13:17 +0000)]
Moves the display of metadata to dump_format()

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

14 years agoParse ID3 tags in Musepack SV7 files
kostya [Tue, 11 Aug 2009 17:28:56 +0000 (17:28 +0000)]
Parse ID3 tags in Musepack SV7 files
Patch by Matti Hamalainen (mhamalai@students.oamk.+358)
Thread: [PATCH] 6/6 Add parsing of ID3v2 tags in Musepack SV7 demuxer

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

14 years agoParse APE metadata tags in Musepack SV7 files
kostya [Tue, 11 Aug 2009 17:18:10 +0000 (17:18 +0000)]
Parse APE metadata tags in Musepack SV7 files

Patch by Matti Hamalainen (to get his mail address remove common endings from
 "mhamalainen@studentsnen.oamknen.finen")
Thread: [PATCH]5/6 Add APE tag metadata reading support in Musepack SV7 demuxer

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

14 years agoMove APE tag parsing into separate module.
kostya [Tue, 11 Aug 2009 17:08:09 +0000 (17:08 +0000)]
Move APE tag parsing into separate module.
Based on patch by Matti Hamalainen (mhamalai<mot>students<punkt>oamk<punkt>)

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

14 years agoDo not use internals of ByteIOContext during APE tags parsing.
kostya [Tue, 11 Aug 2009 16:55:49 +0000 (16:55 +0000)]
Do not use internals of ByteIOContext during APE tags parsing.
Patch by Matti Hamalainen, mail = reverse("if.kmao.stneduts@ialamahm")
Thread: [PATCH] 2/6 Fix broken APE tag key handling

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

14 years agoRemove incorrect APE tag size adjustment based on flags.
kostya [Tue, 11 Aug 2009 16:43:44 +0000 (16:43 +0000)]
Remove incorrect APE tag size adjustment based on flags.
Patch by Matti Hamalainen (mhamalai <luona> students <piste> oamk <piste> fi)
Thread: [PATCH] 1/6 Remove incorrect APE tag size adjustment based on flags

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

14 years agoUse RGB5x5LE, RGB5x5BE, BGR5x5LE and BGR5x5BE instead of their native
cehoyos [Tue, 11 Aug 2009 16:18:55 +0000 (16:18 +0000)]
Use RGB5x5LE, RGB5x5BE, BGR5x5LE and BGR5x5BE instead of their native
endian counterparts.

Patch by Alexis Ballier, alexis D ballier gmail

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

14 years agofix a crash in SVQ1 with cmp!=sad
lorenm [Tue, 11 Aug 2009 07:04:33 +0000 (07:04 +0000)]
fix a crash in SVQ1 with cmp!=sad

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

14 years agoavidec: simplify, using av_rescale_q() instead of av_rescale()
aurel [Mon, 10 Aug 2009 20:53:32 +0000 (20:53 +0000)]
avidec: simplify, using av_rescale_q() instead of av_rescale()

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

14 years agoactually define AVSEEK_FLAG_FRAME as described in avformat_seek_file() doc
aurel [Mon, 10 Aug 2009 20:48:05 +0000 (20:48 +0000)]
actually define AVSEEK_FLAG_FRAME as described in avformat_seek_file() doc

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