Diego Biurrun
4e1424fdc7
cosmetics: Move AMR-WB-specific code to the AMR-WB part of the file.
...
Originally committed as revision 18869 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-19 17:30:27 +00:00
Diego Biurrun
76499b9ff1
Remove useless casts of vec_ld() parameters.
...
Gets rid of 'cast discards qualifiers from pointer target type' warnings.
Originally committed as revision 18867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-18 08:21:50 +00:00
Benjamin Larsson
7dd5568924
Indent
...
Originally committed as revision 18866 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 16:13:03 +00:00
Benjamin Larsson
031b1cbeeb
Change from INIT_VLC_USE_STATIC to INIT_VLC_USE_NEW_STATIC in atrac3
...
Originally committed as revision 18865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 16:12:07 +00:00
Benjamin Larsson
fbf4d03a7c
Indent
...
Originally committed as revision 18864 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 10:31:16 +00:00
Benjamin Larsson
8d9f12657c
Switch from INIT_VLC_USE_STATIC to INIT_VLC_USE_NEW_STATIC in qdm2.
...
Originally committed as revision 18863 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 10:29:40 +00:00
Vitor Sessak
a2c4b2cc9a
Make TMV decoder check packet sizes before reading from it.
...
FATE test 295 might need updating.
Originally committed as revision 18862 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 09:48:12 +00:00
Reimar Döffinger
936bb4a9bc
Add a forward declaration of mpeg1_decode_block_intra to fix compilation
...
broken by r18859 for e.g. all gcc 4 compilers.
Originally committed as revision 18861 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 09:09:07 +00:00
Justin Ruggles
9a7a71ed4c
eac3dec: use 16-bit pre-mantissas instead of 24-bit in AHT decoding. it is
...
simpler and also fixes a bug in GAQ dequantization.
Originally committed as revision 18860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 06:53:24 +00:00
Måns Rullgård
db2f209352
mpeg12: fix non-standard use of "extern inline"
...
Rename ff_mpeg1_decode_block_intra to mpeg1_decode_block_intra and
make it static. Add ff_mpeg1_decode_block_intra as plain extern
function calling mpeg1_decode_block_intra.
Originally committed as revision 18859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-17 00:54:29 +00:00
Justin Ruggles
1ac7d1ac50
ac3dec: fix coupling range check. the start subband must be less than
...
the end subband.
Originally committed as revision 18857 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-16 17:02:44 +00:00
Siarhei Siamashka
7d485f165f
Support for getting (i)MDCT output multiplied by a constant scaling factor.
...
Scaling (i)MDCT output has no runtime overhead and can be used to improve
performance of audio codecs. All the changes are only needed in
'ff_mdct_init' function and slow down initialization a bit.
Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-16 14:17:08 +00:00
Kostya Shishkov
b3867c93d1
Fix off-by-one error in MS RLE decoder which may result into writing past
...
picture buffer.
Originally committed as revision 18852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-16 06:39:08 +00:00
Diego Biurrun
d8ed5bae6f
cosmetics: K&R coding style, indent correctly, break overly long lines
...
Originally committed as revision 18850 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 22:46:29 +00:00
Diego Biurrun
e0c1e12a62
Replace 'x == 0' if conditions with '!x'.
...
Originally committed as revision 18849 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 22:41:26 +00:00
Diego Biurrun
76b58f9f94
cosmetics: Remove pointless {}.
...
Originally committed as revision 18848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 20:12:45 +00:00
Diego Biurrun
e09989be45
Surround AMR_WB encoding code by appropriate #ifdefs.
...
This will help support the opencore AMR library.
Originally committed as revision 18847 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 19:03:45 +00:00
Diego Biurrun
9c0ef69af7
cosmetics: Move some more code around to avoid #ifdeffery.
...
Originally committed as revision 18846 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 18:54:36 +00:00
Diego Biurrun
c005a3ba59
cosmetics: Move functions around so that encoding and decoding functions are
...
grouped together. This will save some #ifdefs.
Originally committed as revision 18845 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 17:34:26 +00:00
Diego Biurrun
4d7d5ede5d
Remove redundant #if condition. Two CONFIG_LIBAMR_NB blocks were right after
...
each other so that the second check was pointless.
Originally committed as revision 18844 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 17:22:41 +00:00
Diego Biurrun
d2dfde0811
Add av_cold attribute to amr_nb decoding/encoding initialization functions.
...
Originally committed as revision 18843 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 17:15:12 +00:00
Benjamin Larsson
e5cd2d3dca
Bugfix for bug introduced in the multichannel cook patchset.
...
Originally committed as revision 18842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 16:25:54 +00:00
Ramiro Polla
13bd2044d3
mlp: Simplify adressing of state and coeffs arrays for both filters by making
...
the arrays sequential.
Originally committed as revision 18841 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 15:34:22 +00:00
Ramiro Polla
42e64bf874
mlp: include mlp.h and use MAX_CHANNELS instead of hardcoding value 8.
...
Originally committed as revision 18840 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 15:30:43 +00:00
David Conrad
ebcf3b742b
Ensure that we don't read from invalid memory with B-frame qpel
...
Originally committed as revision 18839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 07:49:59 +00:00
Baptiste Coudurier
9d9a623925
decode mpeg-2 closed gop first b frames, fix issue #824
...
Originally committed as revision 18837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 05:39:44 +00:00
Baptiste Coudurier
357ec71f09
change pic type to Picture* and remove casts
...
Originally committed as revision 18833 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-15 02:01:53 +00:00
Stefano Sabatini
644f8c7670
Document av_set_string3() returned error codes.
...
Originally committed as revision 18829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 19:03:22 +00:00
Stefano Sabatini
be1fb76fa1
Make av_set_string3() print a message in case of unknown option.
...
Originally committed as revision 18826 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 18:50:58 +00:00
Stefano Sabatini
50f68bdebf
Provide a context to av_log() calls in av_set_number2() and
...
av_set_string3().
Originally committed as revision 18825 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 18:43:43 +00:00
Siarhei Siamashka
460c0abfbb
Fix for issue #829 ("ffvorbis outputs crackling sound, libvorbis plays fine")
...
This was off-by-one bug which affects floor0 encoded files. Tracked down
by valgrind (was reported as the use of uninitialized memory).
With this patch applied, tiny_psnr now reports the following when ffvorbis
is compared to libvorbis-1.0beta4 output for 'lsp-test.ogg' sample:
stddev: 0.76 PSNR: 98.69 bytes: 3498380/ 3498452
Output from libvorbis-1.2 is substantially different:
stddev: 132.57 PSNR: 53.87 bytes: 3498424/ 3498496
Originally committed as revision 18821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 06:38:49 +00:00
Michael Niedermayer
4601e76a43
Fix VBV delay for mpeg1/2 CBR.
...
Originally committed as revision 18820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 03:37:58 +00:00
David Conrad
0a8dedc9e1
Use skip_bits_long() for large skips
...
This fixes ogg/theora on ARM (more generally the A32 bitstream reader)
Originally committed as revision 18819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 00:02:07 +00:00
Alex Converse
107815de42
Subroutine to copy an AAC Program Config Element (PCE)
...
Originally committed as revision 18817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 22:57:30 +00:00
Alex Converse
f2e5c8b96a
Cosmetics after last commit
...
Originally committed as revision 18816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 17:59:46 +00:00
Alex Converse
90350d73f8
Allow parsing and decoding of ADTS AAC files with channel config = 0
...
Originally committed as revision 18815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 17:57:58 +00:00
Alex Converse
ee373ddffd
Move the ADTS header size to the parser's header file.
...
Originally committed as revision 18814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 14:11:11 +00:00
Alex Converse
ec21c21563
Add a quick description to the H.264 BSF
...
Originally committed as revision 18809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 06:06:59 +00:00
Baptiste Coudurier
520ca5032a
add casts to silence gcc warnings
...
Originally committed as revision 18806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 00:32:46 +00:00
Baptiste Coudurier
03e4f1ed7f
add casts to silence gcc warnings
...
Originally committed as revision 18805 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-13 00:27:11 +00:00
Diego Biurrun
e19f995263
Fix bandwith vs. bandwiDth typo.
...
Originally committed as revision 18804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-12 23:40:22 +00:00
Baptiste Coudurier
ca0bb1c49c
V210 Uncompressed 4:2:2 10-bit encoder and decoder
...
Originally committed as revision 18801 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-12 19:56:48 +00:00
Alexander Chemeris
c67d725589
Support 16K samplerate in Nellymoser.
...
patch by Alexander Chemeris, ipse.ffmpeg gmail.com
Originally committed as revision 18798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-11 19:21:49 +00:00
David Conrad
580a7465fb
Add a chroma_sample_location field to define positioning of chroma samples
...
Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-11 04:34:23 +00:00
Måns Rullgård
014b7ecb66
PPC: 32-bit asm for MAC64 and MLS64
...
GCC makes a mess of these operations, so give it a hand.
55% faster MP3 decoding on G4.
Originally committed as revision 18794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-11 02:41:50 +00:00
Baptiste Coudurier
61a4fd8e64
sgi encoder does not support pal8
...
Originally committed as revision 18791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 22:36:16 +00:00
Baptiste Coudurier
30853173b8
reindent
...
Originally committed as revision 18786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 19:11:06 +00:00
Baptiste Coudurier
a7e562291d
check for palette presence, fix crash with QT-BMP.mov, issue #1074
...
Originally committed as revision 18785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 19:10:37 +00:00
Benjamin Larsson
841b45e55d
Remove dead nested assignment found by CSA
...
Originally committed as revision 18784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 14:44:09 +00:00
Baptiste Coudurier
7574dc4c37
update comment for rgb 16 bit in .mov
...
Originally committed as revision 18777 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 00:53:02 +00:00
Diego Biurrun
f8c0692d8e
Add necessary header for CONFIG_RUNTIME_CPUDETECT preprocessor definition.
...
Originally committed as revision 18774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-09 12:26:05 +00:00
Daniel Verkamp
10ce919561
data parameter of dnxhd_encode_picture() should not be const.
...
Fixes "dnxhdenc.c:805: warning: initialization from incompatible pointer type".
patch by Daniel Verkamp, daniel drv nu
Originally committed as revision 18773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-08 19:41:21 +00:00
Michael Niedermayer
9a3eaeebad
Correct x/ymin to avoid segfault due to out of picture reads.
...
Originally committed as revision 18771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-08 15:14:36 +00:00
Daniel Verkamp
a1fd2bc350
Add 8088flex TMV video decoder.
...
Patch by Daniel Verkamp name at drv ... nu.
Originally committed as revision 18765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 21:57:20 +00:00
Daniel Verkamp
89cb5cd25d
Add CGA and palette data for 8088flex TMV decoder.
...
Patch by Daniel Verkamp daniel _AT_ drv DOT nu.
Originally committed as revision 18764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 21:51:58 +00:00
Ramiro Polla
e282272667
mlpdec: Fix possible writing out of array bounds introduced by being
...
under-paranoid in r18651.
Originally committed as revision 18763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 16:01:28 +00:00
Ramiro Polla
e8d341ce19
mlpdec: Split sync word error and MLP sync word check.
...
The previous code would print the wrong error message for MLP streams with
TrueHD noise type.
Originally committed as revision 18762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 15:46:10 +00:00
Ramiro Polla
aff42ee0ff
mlpdec: Fix indentation that got mangled from copy&paste.
...
Originally committed as revision 18761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 15:37:25 +00:00
Kostya Shishkov
512cfd9d54
Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' message
...
Originally committed as revision 18755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 06:49:04 +00:00
Laurent Aimar
992f7db060
Add floating point audio decoding to WavPack decoder.
...
Patch by Laurent Aimar (fenrir at `antonym of 'audio'+antonym of 'WAN'` dot org)
Originally committed as revision 18754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 05:40:43 +00:00
Laurent Aimar
cabb81113a
Prepare WavPack decoder to support floating point output.
...
Patch by Laurent Aimar (f-e-n-r-i-r .@.t. v=i=d=e=o=l=a=n .d.o.t. o=r=g)
Originally committed as revision 18753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 05:28:06 +00:00
Justin Ruggles
778bc09bbe
cosmetics: line wrap and vertical alignment
...
Originally committed as revision 18752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 01:48:14 +00:00
Justin Ruggles
396b73c7f7
ac3dec: Remove unneeded context variable, num_cpl_subbands. It is also
...
not needed for spectral extension or enhanced coupling since it is
redundant information, so I am removing it from decode_band_structure()
as well.
Originally committed as revision 18751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 01:47:34 +00:00
Justin Ruggles
52dc3fc83d
cosmetics: indentation after last commit
...
Originally committed as revision 18750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 23:39:10 +00:00
Justin Ruggles
13ec942869
ac3dec: move channel remapping to outside of block loop
...
Originally committed as revision 18749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 23:38:12 +00:00
Michael Niedermayer
9c24cd7236
Extract colorspace fields from MPEG1/2.
...
Originally committed as revision 18747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 19:53:49 +00:00
Måns Rullgård
1e24f1b25d
mpegaudio: enclose SUM8() macro args in parens when used
...
Originally committed as revision 18746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:44:13 +00:00
Måns Rullgård
bf030c887f
mpegaudio: avoid unnecessary copy in high-precision mode
...
Originally committed as revision 18745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:44:10 +00:00
Måns Rullgård
adb206c238
mpegaudio: use av_clip()
...
Originally committed as revision 18744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:44:07 +00:00
Michael Niedermayer
4ee6a5c161
Add colorspace fields to AVCodecContext.
...
Originally committed as revision 18743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:25:20 +00:00
Carl Eugen Hoyos
ee273f98e8
Cosmetics: Fix indentation after r18741.
...
Originally committed as revision 18742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 15:48:04 +00:00
Michael Niedermayer
266c1d901f
Do not discard mp3 frames in the parser after a broken frame.
...
Fixes issue1044.
This may cause regressions with broken streams, if you find any, please report!
Originally committed as revision 18741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 13:46:50 +00:00
Laurent Aimar
3cb088868c
Factorize out integer sample value decoding for WavPack.
...
This is slightly modified patch by Laurent Aimar.
Originally committed as revision 18740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 06:10:59 +00:00
Måns Rullgård
3737dd1cd3
PPC: implement MULH() in assembler
...
Left to its own devices, gcc calculates the full 64-bit product only to
discard the low 32 bits. This forces it to do the right thing.
20% faster MP3 decoding on G4.
Originally committed as revision 18737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-04 17:31:15 +00:00
Zdenek Kabelac
e2fa5cf4c9
Do not scan for MP3 header after the given buffer and return skipped
...
bytes along with consumed bytes on successful decoding.
patch by Zdenek Kabelac, zdenek.kabelac gmail com
Originally committed as revision 18736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-04 14:23:48 +00:00
Kenan Gillet
5b05059d2d
Properly handle SILENCE frame. Patch by Kenan Gillet.
...
Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-04 03:25:57 +00:00
Benjamin Larsson
6b71ed1678
Remove dead assignments found by CSA
...
Originally committed as revision 18733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-03 09:32:40 +00:00
Laurent Aimar
66311f86d4
Check whether extra bits block has enough data.
...
Patch by Laurent Aimar "f\145nr\151r >at< vide\157lan <dot> o\162g"
Originally committed as revision 18732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-03 05:42:51 +00:00
Benjamin Larsson
241f5eab32
Remove dead assignments found by CSA
...
Originally committed as revision 18731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-02 09:12:03 +00:00
Benjamin Larsson
10c773c12f
Remove dead assignments found by CSA
...
Originally committed as revision 18730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-02 09:08:40 +00:00
Laurent Aimar
418f77ec6e
Decode extended bitstream for high-precision WavPack files.
...
Patch by Laurent Aimar [(wolf, son of Loki) <at> (videolan) <dot> (org)]
Originally committed as revision 18729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-02 05:17:20 +00:00
Michael Niedermayer
714127812c
Ignore first entry of intra matrixes if it is invalid.
...
Fixes pink.mpg / issue1046.
Originally committed as revision 18724 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 12:31:19 +00:00
Michael Niedermayer
45ccc61a06
Factorize quantization matrix loading code out.
...
Originally committed as revision 18723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 12:17:25 +00:00
Ramiro Polla
da00b52578
Don't #if a function declaration and properly indent it.
...
Originally committed as revision 18722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 21:34:56 +00:00
Ramiro Polla
bf4f19dc65
mlpdec: Move MLP's filter_channel() to dsputils.
...
Originally committed as revision 18721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 12:30:05 +00:00
Ramiro Polla
ce1d9c851c
Export av_free_packet().
...
Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 12:06:34 +00:00
Diego Biurrun
f0a75e66b9
Add missing return statement to out-of-memory condition. Fixes the warning:
...
libavcodec/motionpixels.c:302: warning: statement with no effect
Originally committed as revision 18718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 10:21:22 +00:00
Diego Biurrun
a068a7f1f0
Drop unused libamr-nb fixed-point glue code.
...
Originally committed as revision 18716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-29 15:43:57 +00:00
David Conrad
d647ed789f
ARM: Use fewer register in NEON put_pixels _y2 and _xy2
...
Approved by Mans on IRC
Originally committed as revision 18713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-29 11:38:09 +00:00
David Conrad
428bf2ac88
ARM: NEON put_pixels_clamped
...
Originally committed as revision 18712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-29 11:31:43 +00:00
Stefano Sabatini
5efccce2a9
Implement av_get_bits_per_pixel().
...
Originally committed as revision 18709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 23:20:30 +00:00
Vitor Sessak
859471565a
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
2009-04-27 18:35:54 +00:00
Vitor Sessak
6cf92f6d26
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
2009-04-27 16:06:01 +00:00
Vitor Sessak
8a06cb14f9
Skip 0x0000 frame footer in EA ADPCM decoder.
...
Originally committed as revision 18706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 16:04:43 +00:00
Michael Niedermayer
859f9c0b47
Remove useless and outright wrong chatter from avcodec_encode_video().
...
Originally committed as revision 18705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:41:41 +00:00
Michael Niedermayer
aa04b9204e
Remove redundant chatter from avcodec_encode_audio()
...
Originally committed as revision 18704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:39:30 +00:00
Michael Niedermayer
1885c76acf
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
2009-04-27 12:38:14 +00:00
Michael Niedermayer
4d24c24fcb
Add multiframe note to avcodec_decode_video() too.
...
Originally committed as revision 18702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:36:23 +00:00
Michael Niedermayer
e5776422b4
Cleanup first paragraph of doxy of avcodec_decode_audio3().
...
Originally committed as revision 18701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:34:25 +00:00
Michael Niedermayer
3784411100
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
2009-04-27 12:28:56 +00:00
Michael Niedermayer
ed57ef39e6
Remove confusing and redundant engrish chatter from avcodec_decode_video2().
...
Originally committed as revision 18699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:25:36 +00:00
Kostya Shishkov
9c4b5eb8ce
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
2009-04-27 05:30:22 +00:00
Ramiro Polla
77b12f809b
mlpdec: Simplify filtering code by using only one counter variable.
...
Originally committed as revision 18695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-26 20:37:40 +00:00
Laurent Aimar
60294c593e
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
2009-04-26 04:23:29 +00:00
Benjamin Larsson
bdb8d99613
Proper subpacket size check for cook multichannel files.
...
Originally committed as revision 18693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 20:09:34 +00:00
Benjamin Larsson
bb1135c8a3
Remove parentheses
...
Originally committed as revision 18692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 19:47:18 +00:00
Benjamin Larsson
fcc01e646b
Set the type of size in COOKSubpacket to unsigned
...
Originally committed as revision 18691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 18:43:30 +00:00
Stefano Sabatini
75801da580
Add pixdescs definitions for planar YUV pixfmts with 16 bits per
...
component.
Originally committed as revision 18690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 18:29:31 +00:00
Benjamin Larsson
ec32cfd2cc
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
2009-04-25 17:46:27 +00:00
Benjamin Larsson
da75426b26
Indent
...
Originally committed as revision 18688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 17:35:21 +00:00
Benjamin Larsson
0a704b5f21
Remove redundant code
...
Originally committed as revision 18687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 17:33:36 +00:00
Benjamin Larsson
67da31826f
Support cook multichannel files.
...
Originally committed as revision 18685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 10:46:07 +00:00
Benjamin Larsson
7204850ea9
Fix the COOKDEBUG code
...
Originally committed as revision 18684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 10:25:14 +00:00
Benjamin Larsson
4a291c90fe
Factor out COOKSubpacket, in preparation for multichannel support.
...
Originally committed as revision 18683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 10:20:48 +00:00
Stefano Sabatini
10151b138a
Add missing pixel format descriptor definitions.
...
Originally committed as revision 18682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 07:53:55 +00:00
Kostya Shishkov
3df18b3ed1
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
2009-04-25 05:47:38 +00:00
Kostya Shishkov
1c86db80a9
Remove useless assignment during initialization for some decoders
...
Originally committed as revision 18680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 14:09:24 +00:00
Michael Niedermayer
f83c57735e
indent
...
Originally committed as revision 18679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 13:38:28 +00:00
Reimar Döffinger
96c5bc46d2
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
2009-04-24 06:44:16 +00:00
Kostya Shishkov
120ac2620d
cosmetics: remove extra space indentation
...
Originally committed as revision 18676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 05:52:53 +00:00
Kostya Shishkov
29ee635503
Merge decoding functions for all bitdepths in WavPack decoder
...
Originally committed as revision 18675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 05:50:19 +00:00
Michael Niedermayer
68f8d33bec
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
2009-04-24 04:10:32 +00:00
Michael Niedermayer
217d34e307
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
2009-04-24 01:50:09 +00:00
Michael Niedermayer
3788e661f1
Optimize sign handling in get_symbol().
...
Originally committed as revision 18672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 00:26:49 +00:00
Stefano Sabatini
2e418f5ed8
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
2009-04-23 23:14:26 +00:00
Kostya Shishkov
6e0f746d3e
Handle WavPack INT32INFO chunks with nonzero post shift
...
Originally committed as revision 18668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 18:21:16 +00:00
Kostya Shishkov
0638c2ae3c
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
2009-04-23 17:27:04 +00:00
Laurent Aimar
760db32a0c
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
2009-04-23 07:44:04 +00:00
Kostya Shishkov
b750fb6945
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
2009-04-23 07:14:02 +00:00
Michael Niedermayer
e1b3d27272
Remove 2 useless FFMIN().
...
Originally committed as revision 18664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 22:05:34 +00:00
Michael Niedermayer
7bdf2eb8c4
Remove apparently redundant code.
...
Originally committed as revision 18663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 21:44:41 +00:00
Benjamin Larsson
6c73a7d06c
Remove redundant code, found by CSA
...
Originally committed as revision 18661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 13:52:33 +00:00
Kostya Shishkov
21fce71fd1
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
2009-04-22 05:20:31 +00:00
Michael Niedermayer
445f0a8b66
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
2009-04-22 01:54:05 +00:00
Michael Niedermayer
97f9214342
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
2009-04-22 01:50:15 +00:00
Stefano Sabatini
297b5a3f99
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
2009-04-22 00:04:17 +00:00
Ramiro Polla
420df93037
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
2009-04-21 22:53:46 +00:00
Ramiro Polla
309616b249
mlpdec: Validate num_primitive_matrices.
...
Originally committed as revision 18650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 22:32:50 +00:00
Ramiro Polla
868170c4da
mlpdec: Validate max_channel and max_matrix_channel.
...
Originally committed as revision 18649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 22:12:30 +00:00
Ramiro Polla
46958efe97
mlpdec: Restart header sync must be 0x31ea for MLP.
...
Originally committed as revision 18648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 21:57:23 +00:00
Stefano Sabatini
5499a31322
Add missing header inclusion guard.
...
Originally committed as revision 18647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 21:51:01 +00:00
Stefano Sabatini
9401d18fa5
Implement a write_line() function.
...
Originally committed as revision 18646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 19:15:21 +00:00
Jai Menon
3d10a8904d
Read extended channel configuration when extended AOT is BSAC.
...
Originally committed as revision 18644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 17:52:52 +00:00
Kostya Shishkov
0cfa85dd9f
Make VLC tables in DCA decoder use INIT_VLC_USE_NEW_STATIC
...
Originally committed as revision 18643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 17:37:03 +00:00
Kostya Shishkov
a456df258e
100l: VLC table array should not be const
...
Originally committed as revision 18642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 17:35:30 +00:00
Robert Swain
7bbd2fb126
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
2009-04-21 12:29:36 +00:00
Michael Niedermayer
223d996aaf
Fix a possibly exploitable buffer overflow.
...
Originally committed as revision 18640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 12:00:39 +00:00
Kostya Shishkov
f7cf12b209
Set flag after VC-1 VLCs are initialized to avoid race condition
...
Originally committed as revision 18639 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 05:42:22 +00:00
Kostya Shishkov
346802aa99
Remove some useless assignments and variables found by Clang
...
Originally committed as revision 18638 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 05:24:50 +00:00
Kostya Shishkov
547b6a4cc7
Make RV3/4 VLC tables use new static initialization method
...
Originally committed as revision 18637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 04:42:27 +00:00