Janne Grunau
6dc13ccbcc
Set subtitle type in DVD and XSUB subtitle decoders.
...
Patch by Janne Grunau <ja?ne-f?mpeg jannau net>.
Originally committed as revision 19512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-26 23:08:04 +00:00
Diego Biurrun
7e4ceabe7c
Remove unnecessary mpeg12data.o entries from OBJS- variables.
...
Originally committed as revision 19511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-26 21:22:57 +00:00
Diego Biurrun
81a65673a5
Remove duplicated mpeg12data.o entries.
...
Originally committed as revision 19510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-26 21:04:12 +00:00
Måns Rullgård
63613fe615
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
...
Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-26 12:20:04 +00:00
Aurelien Jacobs
84c04e2519
fix various compilation dependencies
...
Originally committed as revision 19507 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-24 21:28:44 +00:00
Diego Biurrun
d15153244f
refactoring: properly separate AC-3 and E-AC-3 code
...
Originally committed as revision 19501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-23 02:33:25 +00:00
Diego Biurrun
89547cfb36
Make sure that eac3_decoder only gets enabled when CONFIG_EAC3_DECODER is set.
...
Originally committed as revision 19500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-23 00:15:23 +00:00
Måns Rullgård
3aab27b459
Remove useless #include <unistd.h> from many files
...
Originally committed as revision 19499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 23:37:53 +00:00
Diego Biurrun
7f4e15e2f4
cosmetics: Reorder some tables/lines to make future diffs smaller.
...
Originally committed as revision 19498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 23:33:58 +00:00
Diego Biurrun
84ef7e7fc3
#include just the required stdint.h instead of libavutil/common.h.
...
Originally committed as revision 19497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 22:57:17 +00:00
Diego Biurrun
4c4b50530e
cosmetics: small typo fixes
...
Originally committed as revision 19496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 22:43:43 +00:00
Diego Biurrun
7d90972c84
cosmetics: reindent/prettyprint after last commit
...
Originally committed as revision 19495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 22:38:26 +00:00
Diego Biurrun
31cf61b447
Only compile in NEON optimizations for H.264 when the H.264 decoder is enabled.
...
Originally committed as revision 19494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 22:33:33 +00:00
Diego Biurrun
99e5a9d1ea
Do not redundantly check for both CONFIG_THEORA_DECODER and CONFIG_VP3_DECODER.
...
The Theora decoder depends on the VP3 decoder.
Originally committed as revision 19492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 22:27:10 +00:00
Diego Biurrun
4eef77c1a3
Make Theora decoder depend on the VP3 decoder.
...
Practically all the code is shared.
Originally committed as revision 19491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 21:36:50 +00:00
Diego Biurrun
b06da1725a
Add missing stdint.h #include to fix 'make checkheaders'.
...
Originally committed as revision 19484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 15:11:00 +00:00
Alex Converse
04e257fa84
Revert unintended portion of last commit. (Setting the default coder to
...
twoloop.)
Originally committed as revision 19481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 03:56:08 +00:00
Alex Converse
a62d6cfeff
Be sure to increment our position in the coefficient array when skipping a zero
...
band in the twoloop scalefactor search.
Originally committed as revision 19480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-22 03:53:30 +00:00
Diego Biurrun
baf91bb9a3
Make E-AC-3 decoder depend on the AC-3 decoder.
...
It is impossible to build E-AC-3 without AC-3.
Originally committed as revision 19477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-21 09:03:45 +00:00
Måns Rullgård
0a8958c849
ARM: handle VFP register arguments in ff_vector_fmul_window_neon()
...
Originally committed as revision 19475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-20 22:30:27 +00:00
Måns Rullgård
ce742de22c
ARM: check for VFP register arguments
...
Originally committed as revision 19474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-20 22:30:24 +00:00
Alex Converse
5cf20d07ad
Remove an unused field from the BandCodingPath struct.
...
Originally committed as revision 19473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-20 21:52:03 +00:00
Alex Converse
0193992252
Actually use all the codebooks we are iterating over in the two-loop scalefactor search.
...
Originally committed as revision 19472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-20 20:32:27 +00:00
Alex Converse
932e6a5a4c
Fix an integer overflow in the AAC encoder.
...
Originally committed as revision 19470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-20 18:27:17 +00:00
Diego Biurrun
e82dc4c91e
Make VP6A/VP6F decoders depend on the VP6 decoder.
...
They share so much code that enabling one without the other is pointless.
Originally committed as revision 19468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-20 09:24:59 +00:00
Diego Biurrun
6410134000
Remove two more lines related to the WMV3 decoder.
...
They are now enabled by the VC-1 decoder.
Originally committed as revision 19467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-19 11:14:43 +00:00
Diego Biurrun
015f8ee009
Make WMV3 decoders depend on their VC-1 counterparts.
...
They share so much code that enabling one without the other is pointless.
Originally committed as revision 19466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-19 11:07:10 +00:00
Alex Converse
3d51be014c
Replace pow(x, 0.75) with sqrtf(x * sqrtf(x)) for a 33% speedup.
...
Originally committed as revision 19459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-17 14:21:49 +00:00
Alex Converse
c369e83608
Dead code removal in the AAC encoder.
...
Originally committed as revision 19457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-17 14:06:53 +00:00
Carl Eugen Hoyos
36904c4c9f
Icc 11.1 still does not align the stack pointer, disable some x264 functions.
...
Originally committed as revision 19454 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-17 09:07:38 +00:00
Alex Converse
6bb17c5155
Add iirfilter to the TESTPROGS variable (and target)
...
Originally committed as revision 19448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-16 22:39:50 +00:00
Alex Converse
a5762c9b59
When calculating AAC quantized band cost, don't leave garbage in the bit count
...
for the 0 codebook.
Originally committed as revision 19444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-16 22:20:17 +00:00
Alex Converse
ca0f1e5092
IIR filter test program.
...
Originally committed as revision 19443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-16 22:17:20 +00:00
Diego Biurrun
359a9979ad
cosmetics: Move some code blocks to reduce the number of #ifdefs.
...
Originally committed as revision 19442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-16 21:37:58 +00:00
Janne Grunau
d6a1611cc2
Set subtitle type in DVB subtitle decoder.
...
Patch by Janne Grunau <j?nne-f?mpeg@jannau?net>.
Originally committed as revision 19432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-14 23:12:43 +00:00
Alex Converse
2876a9dbaf
Use cutoff frequency to adjust bandwidth in the generic psymodel preprocess.
...
Originally committed as revision 19429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-14 05:22:23 +00:00
David Conrad
3e962f315b
Fix "warning: assignment discards qualifiers from pointer target type"
...
Originally committed as revision 19424 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-13 01:59:48 +00:00
Art Clarke
870ee6f715
Fix memory leak in libtheora encoder
...
Patch by Art Clarke [aclark , xuggle . com]
Originally committed as revision 19423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-13 01:59:45 +00:00
Diego Biurrun
95a61cfc24
Make VAAPI/VDPAU variant of decoder foo depend on decoder foo.
...
The VAAPI/VDPAU variants of foo require almost all of the code of foo.
Thus it makes little sense to enable just the accelerated variant.
This allows refactoring some object dependencies in the Makefiles.
Originally committed as revision 19403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-12 13:22:01 +00:00
Alex Converse
36f517736f
Cosmetics: reindent after last commit
...
Originally committed as revision 19400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 21:54:06 +00:00
Alex Converse
6308765cb5
Ignore subsequent channel configurations after the first in an AAC file. The
...
current code doesn't handle them properly, and they are a dubious construction
at best.
Originally committed as revision 19399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 21:53:04 +00:00
Alex Converse
c8ec2f1cb8
Mark iir filter init and free functions av_cold.
...
Originally committed as revision 19398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 20:55:15 +00:00
Alex Converse
47f49f98ca
Fix "iirfilter.c:55: warning: unused variable ‘size’"
...
Originally committed as revision 19397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 20:51:22 +00:00
Alex Converse
e187d87d7d
Eliminate use of complex.h from iirfilter.c
...
Originally committed as revision 19396 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 20:45:13 +00:00
Alex Converse
988c170547
Change fminf/fmaxf to FFMIN/FFMAX to fix the build on broken operating systems.
...
Originally committed as revision 19391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 17:22:59 +00:00
Måns Rullgård
181b336304
Fix declarations of complex numbers
...
Complex numbers must be declared using a base type of float, double,
or long double.
Originally committed as revision 19390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 10:16:00 +00:00
Alex Converse
f11bfe3065
Reindent after last commit
...
Originally committed as revision 19382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 23:14:47 +00:00
Alex Converse
48d20c11ba
Prevent AAC frame size overflows.
...
Originally committed as revision 19381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 23:12:53 +00:00
Alex Converse
5962f6b0da
Refactor windowing and early psy from bitstream writing parts of the AAC encoder.
...
Originally committed as revision 19380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 23:10:13 +00:00
Alex Converse
7a4eebcdce
Turn on AAC rate control.
...
Originally committed as revision 19379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 23:04:22 +00:00
Diego Biurrun
c8f47d8b79
cosmetics: Remove unnecessary {} around if/for blocks;
...
move statements after if/for to the next line.
Originally committed as revision 19378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 21:36:33 +00:00
Diego Biurrun
99d61d340c
cosmetics: prettyprinting, K&R style, break overly long lines
...
Originally committed as revision 19377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 21:16:06 +00:00
Alex Converse
fd257dc4c0
Cosmetics: Pretty print the AAC encoder.
...
Originally committed as revision 19376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 20:36:45 +00:00
Alex Converse
78e65cd772
Merge the AAC encoder from SoC svn. It is still considered experimental.
...
Originally committed as revision 19375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 20:01:31 +00:00
Reimar Döffinger
5e039e1b4c
Add extra validation checks to ff_vorbis_len2vlc.
...
They should not be necessary, but it seems like a reasonable precaution.
Originally committed as revision 19374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 19:39:23 +00:00
Reimar Döffinger
1de4ba7155
Make sure that values generated for ff_vorbis_len2vlc in
...
vorbis_parse_setup_hdr_codebooks are in the valid range (<=32).
Originally committed as revision 19373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 19:31:04 +00:00
Alexis Ballier
287fff266f
Add PIX_FMT_ARGB encoding to qtrle.
...
Patch by Alexis Ballier, alexis ballier gmail
Originally committed as revision 19372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-08 14:58:16 +00:00
Diego Biurrun
6ae5c1f0fb
whitespace cosmetics: Realign colums after last commit.
...
Originally committed as revision 19367 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-07 09:33:53 +00:00
Diego Biurrun
36b38500b6
Check for CONFIG_LIBFOO_DECODER/CONFIG_LIBFOO_ENCODER instead of just
...
CONFIG_LIBFOO in the external libraries section.
This is more consistent with the rest of the Makefiles, it makes clearer what
is actually implemented and should be advantageous if we implement an external
library encoder where we previously just had the decoder and vice versa.
Originally committed as revision 19366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-07 09:33:08 +00:00
Diego Biurrun
fc1206a4d9
Remove support for nonfree libamr library for AMR-NB/WB decoding/encoding.
...
libopencore can now be used as a replacement except for AMR-WB encoding.
Originally committed as revision 19365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-07 00:28:16 +00:00
Reimar Döffinger
4f76697b3e
Change av_free to av_freep
...
Originally committed as revision 19360 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-06 16:49:36 +00:00
Reimar Döffinger
16c8318513
Reallocate internal buffer when coded frame size changes.
...
Fixes out-of-bounds reads and writes with i32/smclocki32.avi.1.0 from issue 1240.
Originally committed as revision 19359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-06 16:48:23 +00:00
Reimar Döffinger
28bcc76ab7
Change iv_decode_frame to get AVCodecContext as argument, so that
...
avcodec_check_dimensions can be called with a proper context instead of NULL.
Originally committed as revision 19358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-06 16:45:12 +00:00
Reimar Döffinger
c79c960ade
Remove useless ret variable added in last revision again.
...
Originally committed as revision 19357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-06 10:28:58 +00:00
Reimar Döffinger
7cda815044
100l, theora_decode_init must pass on errors from vp3_decode_init
...
Originally committed as revision 19356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-06 09:35:00 +00:00
Reimar Döffinger
c4b7b8bf9c
Make decode_init fail if the huffman tables are invalid and thus init_vlc fails.
...
Otherwise this will crash during decoding because the vlc tables are NULL.
Partially fixes ogv/smclock.ogv.1.101.ogv from issue 1240.
Originally committed as revision 19355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-06 09:22:39 +00:00
Reimar Döffinger
e13cca4b14
Ensure that the filter limit values do not exceed the maximum allowed value of 127.
...
Originally committed as revision 19351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-05 18:27:39 +00:00
Reimar Döffinger
7fa5f9990b
Extend init_loop_filter to work for filter limit values up to 127 instead
...
of only up to 64. 127 is the maximum value allowed by the theora specification.
Originally committed as revision 19350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-05 18:25:58 +00:00
Reimar Döffinger
ad92108694
Add a check to vp6_parse_coeff_huffman to ensure it does not overread the input buffer.
...
Originally committed as revision 19349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-05 16:01:51 +00:00
Aurelien Jacobs
7576516a7e
vp56dec: ensure range coder won't read past the end of input buffer
...
Originally committed as revision 19348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-05 15:23:42 +00:00
Reimar Döffinger
5be5daf1e5
Check that palctrl is available on init instead of crashing when trying to use
...
it on decode.
Fixes mpeg2/smclockmpeg2.avi.2.1 from issue 1240.
Originally committed as revision 19347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-05 12:14:05 +00:00
Loren Merritt
e30004fa73
fix a buffer overrun on corrupt huffyuv streams
...
Originally committed as revision 19346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 23:59:10 +00:00
David Conrad
2483298ae2
ARM: NEON VP3 IDCT
...
15% faster VP3/Theora, 10% faster VP6
Originally committed as revision 19345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 20:41:11 +00:00
Reimar Döffinger
82c9182fe3
If the end of the input buffer is reached while decoding MJPEG and at least
...
a valid SOF was found, emulate an EOI.
This allows e.g. to at least decode the available part of incomplete MJPEG frames.
Originally committed as revision 19344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 18:24:43 +00:00
Reimar Döffinger
1496b04c28
Make the MJPEG decoder return -1 when no image was decoded so that decode
...
errors are actually recognizable as such.
Originally committed as revision 19343 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 18:22:33 +00:00
Reimar Döffinger
643fd8a198
Add a got_picture flag to MJpegDecodeContext which indicates if its picture
...
element is valid. Skip the code handling SOS and EOI if not, since it can not
work without a valid AVPicture.
This fixes a crash with mjpeg/smclockmjpeg.avi.1.0 from issue 1240 where the
decoder returned an invalid AVPicture.
Originally committed as revision 19342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 18:20:35 +00:00
Reimar Döffinger
b27bf2a7b4
mjpegdec: check that the coded dc_index and ac_index have a valid associated VLC table.
...
Removes some disabled dc_index/ac_index checking code that seems to have had
some undocumented issues and should not really be necessary anymore now.
Fixes from issue 1240 the files mjpeg/smclockmjpeg.avi.1.10 and mjpeg/smclockmjpeg.avi.1.171.
Originally committed as revision 19341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 12:54:36 +00:00
Alexander Strange
e5f61b94a1
H.264: Check the return value of decode_vui_parameters()
...
Files with invalid VUI are now rejected like
other invalid SPS are.
Fixes issue1231.
Originally committed as revision 19335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-04 07:46:58 +00:00
Alexander Strange
0410ee8f86
H.264: Don't set data_partitioning for invalid NAL_DPA.
...
Before, the decoder could interpret a corrupt frame
as a NAL_DPA and NAL_DPC, and then start decoding
even if decode_slice_header() returned an error.
This frequently caused crashes.
Fixes issue1228, issue1229, and partially issue1238.
Originally committed as revision 19328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-03 05:52:00 +00:00
Art Clarke
bda1ad1e73
Cleanup properly at the end of MPEG Audio parsing.
...
Patch by Art Clarke (aclarke AT xuggle com)
Originally committed as revision 19327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-02 13:13:20 +00:00
Baptiste Coudurier
6be8b20466
Revert r19317, "simplify slice_end, return size of output frame".
...
It returns non decodable B-frames.
Originally committed as revision 19324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 20:35:28 +00:00
Michael Niedermayer
fb6ecd7285
indent
...
Originally committed as revision 19323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 20:34:16 +00:00
Michael Niedermayer
37458d7e1b
Make sure we dont read over the end.
...
Fixes issue1237.
Originally committed as revision 19322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 20:30:37 +00:00
Måns Rullgård
ec62d942ea
Fix potentially unaligned accesses in ff_copy_bits()
...
A pointer should never be assigned a value which may have less than the
required alignment of the target type. Compilers may assume pointer
values have the required alignment, and emit normal load/store instructions.
Unaligned pointers should use a character type or compiler-specific
type modifiers.
Originally committed as revision 19318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 17:48:22 +00:00
Baptiste Coudurier
f7f1eb6cc9
simplify slice_end, return size of output frame
...
Originally committed as revision 19317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 17:29:52 +00:00
Kostya Shishkov
39c601b5e7
RV3/4 intra types array causes alignment issues (at least on ARM5), thus change
...
its stride and offset to always have align 4.
Originally committed as revision 19316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 15:08:02 +00:00
Måns Rullgård
4a30fff60d
Fix argument type mismatches for av_picture_crop and av_picture_fill
...
Originally committed as revision 19314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 10:36:18 +00:00
Baptiste Coudurier
fb0a835ff4
add missing \n to error message
...
Originally committed as revision 19313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 06:48:27 +00:00
Måns Rullgård
6816f8b8e4
ADPCM: remove unreachable break statement after return
...
Originally committed as revision 19312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 00:55:17 +00:00
Jason Garrett-Glaser
fe022ce2f8
Fix libx264.c to not drop SEI userdata from x264 encoder.
...
Most muxers in ffmpeg ignore the SEI if it is placed in extradata, so instead
it has to be catted to the front of the first video frame.
Originally committed as revision 19310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-30 23:45:01 +00:00
Reimar Döffinger
8d8409ca9f
Fix nalsize check to avoid an integer overflow that made the check
...
incorrect for nalsize > INT_MAX - buf_index
Originally committed as revision 19307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-30 12:11:29 +00:00
Stefan Gehrer
470de55aa1
fix slice header checking
...
Originally committed as revision 19303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-30 06:44:32 +00:00
Michael Niedermayer
822d0a6e0c
Drop code that attempts to decode frames that are prefixed by junk.
...
Too often it ends up decoding random data into noise without detecting
it (for example after seeking of some MP3 data with oddly often occurring
startcode emulation).
Fixes issue1154.
Originally committed as revision 19302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-30 03:57:27 +00:00
Kostya Shishkov
f3ac96e4d8
Support RGB48 PNG decoding
...
Originally committed as revision 19301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-30 03:37:20 +00:00
Michael Niedermayer
2073fc84ff
Rewrite mp3 parser. New code is much simpler and does not drop
...
stuff at random.
Originally committed as revision 19300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-30 03:12:50 +00:00
Ronald S. Bultje
684aa30251
Add doxy to av_log_missing_feature() etc. stating that the function is
...
primarily intended for internal use in lavc/lavf, not for use in apps.
Originally committed as revision 19296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-29 19:17:03 +00:00
Ronald S. Bultje
4811f89bc6
Move av_log_missing_feature() from the internal.h to the public avcodec.h
...
header file.
Originally committed as revision 19295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-29 19:11:53 +00:00
Ronald S. Bultje
ce863d7f36
Rename ff_log_missing_feature() to av_log_missing_feature().
...
Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-29 19:07:04 +00:00
David Conrad
29024501b7
Revert r19149 "Disable native Vorbis encoder"
...
Originally committed as revision 19290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-29 09:02:07 +00:00
Carl Eugen Hoyos
a10de6dc4b
Replace an occurence of -1 by PIX_FMT_NONE, fixes icc warning #188 :
...
enumerated type mixed with another type
Originally committed as revision 19283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-27 08:39:56 +00:00
Vladimir Voroshilov
d266709055
Pitch delay decoding
...
Originally committed as revision 19281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-26 17:43:05 +00:00
Vladimir Voroshilov
2b0691349f
Replace pitch_delay_int array with single variable.
...
Originally committed as revision 19280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-26 17:42:25 +00:00
Stefano Sabatini
d171a651db
Rewrite doxy for av_strtod().
...
Originally committed as revision 19268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-24 22:35:11 +00:00
Haruhiko Yamagata
c173a0881f
Improve wording: s/reseted/reset
...
Patch by Haruhiko Yamagata, h D yamagata A nifty D com
Originally committed as revision 19266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-24 12:10:20 +00:00
Vladimir Voroshilov
3c70902bf5
LSF (Line Spectral Frequencies) decoding routine.
...
Originally committed as revision 19260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-24 04:38:48 +00:00
Haruhiko Yamagata
2722c3a30d
Fix H.264 picture reordering, 2nd try.
...
First, reverted one was r19239.
Patch by Haruhiko Yamagata, h D yamagata A nifty D com
Originally committed as revision 19258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-23 21:03:35 +00:00
Brian Crowell
ce9dd8f509
Make documentation better match the code. Now AVCodecContext.sample_fmt
...
is used.
Patch by Brian Crowell <($firstname)@fluggo.com>
Originally committed as revision 19257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-23 18:17:15 +00:00
Kostya Shishkov
74a30595b2
Edge emulation should be used in B-frame MC in mspel mode with
...
mv_x < 1 or mv_y < 1.
Originally committed as revision 19255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-23 07:41:38 +00:00
Stefano Sabatini
1c2744d139
Export av_strtod() to eval.h.
...
Originally committed as revision 19252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-22 22:22:40 +00:00
Stefano Sabatini
e877eaacf3
Cosmetics: rename 'name' av_strtod() param to 'numstr'. The new name
...
is more expressive.
Originally committed as revision 19249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-21 21:37:05 +00:00
Baptiste Coudurier
b27758bc02
Fetch timestamp for the first frame of field only if frame_offset and
...
next_frame_offset are not set, because second field has next frame offset set
but not frame_offset, otherwise this wrongly fetch timestamp for the
second field.
Originally committed as revision 19244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-21 03:50:26 +00:00
Carl Eugen Hoyos
df028e8c6a
Revert r19239: It broke four conformance tests.
...
Originally committed as revision 19241 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 14:47:38 +00:00
Vladimir Voroshilov
630c97ff4b
Convertion of LSF values to coefficients of linear prediction filter
...
Originally committed as revision 19240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 13:36:21 +00:00
Haruhiko Yamagata
6ee0eb38c0
Fix H.264 picture reordering.
...
Patch by Haruhiko Yamagata, h D yamagata A nifty D com
Originally committed as revision 19239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 13:16:07 +00:00
Carl Eugen Hoyos
1efe9fd5c0
Fix indentation after last commit.
...
Originally committed as revision 19238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 13:10:17 +00:00
Yoshihisa Uchida
d8b2d83473
Fix yamaha adpcm stereo (issue 1117).
...
Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail
Originally committed as revision 19237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 13:07:21 +00:00
Sascha Sommer
4c7615c40e
Make remaining run level decode comments doxygen comments
...
Originally committed as revision 19235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 11:22:25 +00:00
Sascha Sommer
4df8bdeef3
Simplify run level decoding:
...
- remove unneeded vlc code < 0 check
- reorder vlc code handling so that the unlikely escape decoding
part comes last
- move overflow check out of the decode loop
- branchless sign conversion
Originally committed as revision 19234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 11:06:48 +00:00
Sascha Sommer
4d67e067e2
Fix indentation after the previous commit
...
Originally committed as revision 19233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 10:33:18 +00:00
Sascha Sommer
891bd2e5aa
Add support for escape coded wmapro run level coefficients
...
Originally committed as revision 19232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 10:28:55 +00:00
Sascha Sommer
9970c61b4b
Introduce WMACoef typedef for decoded coefficients
...
and change default type to float so that the run level
decoding functionality can be shared with wmapro
Originally committed as revision 19231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-20 09:05:28 +00:00
Reimar Döffinger
a4276ba2ac
Add support for encoding XSUB subtitles. Muxing support is still missing.
...
Based on code by DivX, Inc., heavily changed by Björn Axelsson [gecko acc.umu.se] and me.
Originally committed as revision 19222 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-19 09:56:35 +00:00
Reimar Döffinger
4bbe788ab7
Add pts field to AVSubtitle, for use by future XSUB encoder (and XSUB decoder
...
should use it, too).
Originally committed as revision 19221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-19 08:28:07 +00:00
Vladimir Voroshilov
17dbe25438
G.729 decoding routine (skeleton, including parameters decoding).
...
Originally committed as revision 19218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-18 18:14:38 +00:00
Måns Rullgård
2da4e5e3e1
ARM: slightly faster NEON H264 horizontal loop filter
...
Originally committed as revision 19216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-17 22:33:04 +00:00
Jason Garrett-Glaser
351653a51e
VC-1/WMV: Remove redundant ff_init_block_index() calls.
...
These are only supposed to be called once per row, not once per macroblock.
~1.5% faster according to oprofile.
Originally committed as revision 19213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-17 05:54:42 +00:00
Alexander Strange
d2d5e06735
H.264: Fix memory leaks with multithreading.
...
The threads' contexts and rbsp_buffers were not freed at the end
of decoding.
Fixes issue 1581
Originally committed as revision 19207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-16 21:50:36 +00:00
Jason Garrett-Glaser
73b02e2460
SSE version of clear_blocks
...
Originally committed as revision 19206 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-16 17:33:57 +00:00
Jason Garrett-Glaser
010f98f96a
VC-1/WMV3 decoding: don't clear blocks unless they're actually used.
...
~8% faster VC-1 decoding.
Possible future optimization: clear blocks after use instead of before, and for
DC-only blocks, only clear the DC coefficient.
Originally committed as revision 19205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-16 09:09:03 +00:00
Jason Garrett-Glaser
4f717c69ed
idct_dc for VC-1/WMV3 decoder; ~11% faster decoding overall.
...
Includes mmx2 asm for the various functions.
Note that the actual idct still does not have an x86 SIMD implemtation.
For wmv3 files using regular idct, the decoder just falls back to simple_idct,
since simple_idct_dc doesn't exist (yet).
Originally committed as revision 19204 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-16 09:00:55 +00:00
Jason Garrett-Glaser
41faa87886
Fix typo in vc1.c, make capitalization in warning/error messages more consistent.
...
Originally committed as revision 19203 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-16 00:48:07 +00:00
Ramiro Polla
7cc8d616aa
Fix unaligned accesses by doing bytewise access until aligned, then
...
continuing in 32-bit quantities.
Fixes crash observed on sparc during FATE mlp test.
Patch by Ramiro.
Originally committed as revision 19200 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-15 14:38:30 +00:00
Baptiste Coudurier
2c608fed3a
print error when dv frame profile cannot be found
...
Originally committed as revision 19193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-14 22:41:30 +00:00
Baptiste Coudurier
d509c743b7
check if frame size matches old sys and assumes corrupted input, fixes #1192
...
Originally committed as revision 19192 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-14 22:34:28 +00:00
Peter Ross
7d58228055
Initialise MAD decode_block_intra() loop iterator to zero.
...
Originally committed as revision 19189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-14 09:55:28 +00:00
Vladimir Voroshilov
94994d8d9a
G.729 decoder initialization routine (skeleton)
...
Originally committed as revision 19188 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-14 02:31:06 +00:00
Vladimir Voroshilov
730c1e4a06
Replace MAX_SUBFRAME_SIZE and ctx->subframe_size with SUBFRAME_SIZE,
...
since subframe length is the same in all G.729 modes.
Originally committed as revision 19187 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-14 02:29:39 +00:00
Justin Ruggles
7ca1295985
Do not guess the channel layout when getting its string value.
...
Originally committed as revision 19185 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-13 22:33:13 +00:00
Justin Ruggles
0fb6a8b339
Remove the 3-front-channel layout from the list of channel layout
...
aliases. Calling this "surround" is confusing and questionable.
Originally committed as revision 19183 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-13 18:57:54 +00:00
Kostya Shishkov
0d5390b062
Correct reading bits in MPC SV8 base codes (when we have to read 0 or >16 bits).
...
Originally committed as revision 19182 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-13 06:41:51 +00:00
Peter Ross
c63ea92bf2
Electronic Arts Madcow decoder
...
Originally committed as revision 19178 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-13 02:19:41 +00:00
Alex Converse
d4eeef0c19
Cosmetics: Re-indent after last commit
...
Originally committed as revision 19175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 21:16:33 +00:00
Alex Converse
85e9296f41
Move TNS and swb_offset tables from aacdectab.h to aactab.c so that they can be
...
shared with the AAC encoder.
Originally committed as revision 19174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 21:14:45 +00:00
Jason Garrett-Glaser
fc3fc0293d
Add new FOURCC (0x0003) for raw DIB video, set flip flag accordingly.
...
Fixes a few AVI files from what is probably a mobile phone video camera.
Originally committed as revision 19172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 17:39:56 +00:00
Sascha Sommer
c0e9b2e84f
Move run level decode functionality to ff_wma_run_level_decode
...
so that it can be reused for wmapro
Originally committed as revision 19171 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 16:00:26 +00:00
Sascha Sommer
e8c7f81cf2
cosmetics: Add brackets between if/else
...
Originally committed as revision 19170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 15:48:41 +00:00
Sascha Sommer
523c09ca44
Add additional sample rates to the frame len bits calculation code
...
Originally committed as revision 19169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 15:38:11 +00:00
Sascha Sommer
cee4bb894d
Move frame len bits calculation to ff_wma_get_frame_len_bits
...
so that it can be reused for wmapro
Originally committed as revision 19167 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 15:21:43 +00:00
Diego Biurrun
ae1374ce10
cosmetics: Prettyprint and reformat wma.c closer to K&R style.
...
Originally committed as revision 19165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 13:12:13 +00:00
Jimmy Christensen
94d3d6a468
DPX (Digital Picture Exchange) image decoder
...
patch by Jimmy Christensen, jimmy ghost dk
Originally committed as revision 19163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 05:29:29 +00:00
Diego Biurrun
477ffff218
The internal header libavutil/internal.h should not be used outside libavutil.
...
Originally committed as revision 19157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 20:18:29 +00:00
Diego Biurrun
233816820d
10l: Add vc1dec.o to the list of WMV3 objects, same as for VC-1.
...
Even after the split into shared and decoder-specific code, WMV3
continues to have the same dependencies as VC-1.
Originally committed as revision 19153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 09:40:24 +00:00
Diego Biurrun
b761659bef
Split decoder-specific code off from vc1.c into vc1dec.c and keep code
...
shared between decoder and parser in vc1.c.
Originally committed as revision 19152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 09:31:31 +00:00
Baptiste Coudurier
844d17fb14
Add const in cast. Removes warning:
...
libavcodec/resample.c:215: warning: assignment discards qualifiers from pointer target type
Originally committed as revision 19151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 08:16:08 +00:00
Baptiste Coudurier
89bc05d1ea
give s->resample_context to avoid segfault, avclass was moved
...
Originally committed as revision 19150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 08:14:50 +00:00
David Conrad
77fc598d98
Disable native Vorbis encoder; quality is much worse than libvorbis and
...
there really isn't a reason to use it on purpose unless you're improving it.
Originally committed as revision 19149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 06:28:06 +00:00
Diego Biurrun
17492d5e40
Add code to enable and disable all VAAPI and VDPAU parts.
...
As a positive sideeffect, VAAPI/VDPAU objects need no longer be listed
for all VAAPI/VDPAU-related decoders.
Originally committed as revision 19145 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-10 20:50:53 +00:00
Haruhiko Yamagata
b19d493f2b
Add field prev_interlaced_frame to H264Context to be able to flag soft telecine
...
progressive.
Patch by Haruhiko Yamagata, h D yamagata A nifty D com
Originally committed as revision 19141 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-09 21:16:40 +00:00
Diego Biurrun
28b80940ff
Express the H.264 parser dependency on the golomb code in configure instead of
...
in the Makefile as it is done for all other parts that depend on golomb.
Originally committed as revision 19139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-09 20:29:52 +00:00
Diego Biurrun
ef434a4b24
Add missing dependencies for H.264 and VC-1 parsers.
...
Originally committed as revision 19138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-09 20:07:01 +00:00
Luca Abeni
747069e254
Properly initialize AVFrames to default values in the MPEG decoder (fixes
...
the AVFrame pts when decoding MPEG 1 and 2 video)
Originally committed as revision 19136 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-09 10:06:25 +00:00
Michael Niedermayer
f1b99cc63b
Clarify (re)get_buffer() and CODEC_CAP_DR1 relation.
...
Originally committed as revision 19132 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-07 19:30:54 +00:00
Diego Biurrun
1e15e5366f
Remove comments that refer to fixed-point AMR implementations.
...
Originally committed as revision 19130 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-07 15:15:45 +00:00
Baptiste Coudurier
ae8d21fb45
clarify avcodec_decode_audio3 and avcodec_decode_video2 doxygen
...
Originally committed as revision 19128 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 20:16:53 +00:00
Vladimir Voroshilov
d4a9255699
K&R formatting of already submitted G.729 code
...
Originally committed as revision 19127 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 17:40:33 +00:00
Vladimir Voroshilov
3bbc46102b
Convert structure names to FFmpeg style
...
Originally committed as revision 19123 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 12:42:11 +00:00
Stefano Sabatini
bf7e799c9e
Remove '\p', '\c' and '\e' doxygen markup from doxy, as it should
...
improve plain text doxy readability.
See the thread: "[RFC] Should we use doxygen markup?".
Originally committed as revision 19122 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 09:35:15 +00:00
Kostya Shishkov
10ae4bb477
Get new buffer during frame decoding in VB video decoder, not only once
...
during decoder initialization.
Originally committed as revision 19121 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 08:46:08 +00:00
Vladimir Voroshilov
e72c65f583
Internal routine should not use name of standard function.
...
Use g729_prng instead.
Originally committed as revision 19120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 05:38:09 +00:00
Vladimir Voroshilov
8dbd0a95ee
Remove ff_g729_ and g729_ prefixes from static routines.
...
Originally committed as revision 19118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 17:11:46 +00:00
Diego Biurrun
0b175caac8
Add support for external OpenCORE libraries for AMR-NB/WB support.
...
Originally committed as revision 19117 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 12:32:40 +00:00
Baptiste Coudurier
f3908a82bc
vmware video decoder uses reget_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 09:05:17 +00:00
Baptiste Coudurier
6d3530ce2b
zmbv decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19112 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 09:02:14 +00:00
Baptiste Coudurier
35b2c65756
vc1 and wmv3 decoders use MPV_frame_start which uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:53:39 +00:00
Baptiste Coudurier
c0bd35c70c
renderware txd image decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:48:34 +00:00
Baptiste Coudurier
fa27733cea
tmv decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19109 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:47:39 +00:00
Baptiste Coudurier
a08e67e70d
tiff image decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:46:04 +00:00
Baptiste Coudurier
7f57905d55
vp3 and theora decoders use get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19107 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:44:26 +00:00
Baptiste Coudurier
89978e35a2
targa image decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:42:32 +00:00
Baptiste Coudurier
da04a14889
sun rasterfile image decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19105 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:41:19 +00:00
Baptiste Coudurier
2b2b7f41de
snow decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19104 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:40:31 +00:00
Baptiste Coudurier
d65c1feead
smacker video decoder uses reget_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19103 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:37:55 +00:00
Baptiste Coudurier
c7af8b4e07
kmvc decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19102 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:36:26 +00:00
Baptiste Coudurier
80e8e25ef2
ptx image decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19101 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:35:36 +00:00
Baptiste Coudurier
f4499c955a
libopenjpeg wrapper uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19100 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:33:58 +00:00
Baptiste Coudurier
d0a7936710
png decoder use get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19099 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:32:41 +00:00
Baptiste Coudurier
f1cdd863a5
pcx decoder use get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19098 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:29:29 +00:00
Baptiste Coudurier
5f27348bd3
pgm, pgmyuv, ppm, pbm and pam decoders use get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:29:05 +00:00
Baptiste Coudurier
0cf0c5bfa8
dxa decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:21:54 +00:00
Baptiste Coudurier
1ea9dbbb92
bfi decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19095 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:20:51 +00:00
Baptiste Coudurier
4a89072833
bmp decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19094 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:19:33 +00:00
Baptiste Coudurier
94c014c455
amv decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19093 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:18:17 +00:00
Baptiste Coudurier
be7e793261
bethesda vid decoder uses reget_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:17:36 +00:00
Baptiste Coudurier
53e67085b2
4xm decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:12:14 +00:00
Baptiste Coudurier
7bbf3f2ca4
indeo3 decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-05 08:08:49 +00:00
Ramiro Polla
74a841af8b
Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.
...
Originally committed as revision 19089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-04 23:25:09 +00:00
Diego Biurrun
51222d1041
cosmetics: K&R style reformatting
...
Originally committed as revision 19088 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-04 10:37:29 +00:00
Ramiro Polla
989b7181ac
Use fewer macros in x86-optimized mlpdsp.
...
Fixes compilation on 32-bit llvm which didn't allow a cast in an m operand.
Originally committed as revision 19086 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 23:48:28 +00:00
Michael Niedermayer
f4ebb334be
Fix sei_ct_type check so it does not mistreat ct_type= unknown.
...
Originally committed as revision 19082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 19:24:51 +00:00
Michael Niedermayer
4d95ae1882
Print ct_type and pic_struct.
...
Originally committed as revision 19081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 19:23:34 +00:00
Alex Converse
ad5caf3ab7
AAC ADTS to AudioSpecificConfig bitstream filter
...
Originally committed as revision 19080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 18:50:46 +00:00
Reimar Döffinger
10f9ff9bf6
Set AV_PKT_FLAG_KEY in avcodec_decode_video.
...
This fixes decoding of MPNG, which currently is incorrectly decoded as
CorePNG delta frames.
CorePNG can not be correctly decoded via this old API either way.
Originally committed as revision 19079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 11:23:16 +00:00
Reimar Döffinger
8f3f2e0676
Add AV_PKT_FLAG_KEY and deprecate PKT_FLAG_KEY.
...
Originally committed as revision 19078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 11:20:35 +00:00
Michael Niedermayer
da45d5b9c6
Clarify the input AVPacket for avcodec_decode*()
...
Originally committed as revision 19077 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-03 10:25:21 +00:00
Kostya Shishkov
9706d1c766
Check combined depth and number of components in TIFF decoder, thus eliminating
...
additional checks for each depth (like 48-bit gray vs. 48-bit RGB)
Originally committed as revision 19076 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-02 15:31:51 +00:00
Reimar Döffinger
24dd21fa41
add #if CONFIG_ZLIB_DECODER around zlib_decomp function.
...
Fixes compilation when zlib is not available.
Originally committed as revision 19069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 19:51:21 +00:00
Reimar Döffinger
79183d3c3e
mszh decompression: add a special case for an all-0 mask, i.e. 32 uncompressed
...
bytes in a row.
About 15% faster mszh_decomp on an Atom N270 for
http://samples.mplayerhq.hu/V-codecs/mszh-zlib/avimzsh_sample.avi
Originally committed as revision 19068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 18:17:33 +00:00
Reimar Döffinger
a7bfbe4e13
lcldec: ensure that the offset for av_memcpy_backptr is valid.
...
Originally committed as revision 19067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 17:44:35 +00:00
Reimar Döffinger
bbf306742c
Fix memleak due to c->decomp_buf never being freed.
...
Originally committed as revision 19064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 11:47:52 +00:00
Reimar Döffinger
908425c758
Only call inflateEnd when we were actually using the zlib code.
...
Originally committed as revision 19063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 11:42:50 +00:00
Reimar Döffinger
4ad3df9da2
avctx->priv_data is initialized to 0, get rid of useless extra initialization.
...
Originally committed as revision 19062 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 11:41:49 +00:00
Reimar Döffinger
7ffc844742
Merge variable declaration and initialization.
...
Originally committed as revision 19061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 11:35:20 +00:00
Reimar Döffinger
7c20421661
Use int-size types instead of char where it makes no difference.
...
Originally committed as revision 19060 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 11:34:19 +00:00
Reimar Döffinger
7a15b25827
Take advantage of available input padding to optimize mszh_decomp
...
Originally committed as revision 19059 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 11:32:03 +00:00
Reimar Döffinger
a5d2745d8e
Change maskbit variable to contain (1 << maskbit)
...
Originally committed as revision 19058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:58:20 +00:00
Reimar Döffinger
e0b3af9059
Remove check that thanks to padding is no longer necessary.
...
Originally committed as revision 19057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:53:47 +00:00
Reimar Döffinger
0b99764459
100l, the compression field in lcl extradata must be interpreted as
...
int8_t, not uint8_t to allow -1 for "no compression".
The original code worked, but only when char was signed.
Originally committed as revision 19056 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:50:54 +00:00
Reimar Döffinger
e4f141ad60
One more use for FFMIN.
...
Originally committed as revision 19055 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:44:42 +00:00
Reimar Döffinger
0d48e6ec7f
Pad the decompression buffer and use av_memcpy_backptr for the mszh decompression.
...
Originally committed as revision 19054 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:42:26 +00:00
Reimar Döffinger
974ce78544
Mark srcptr as const in mszh_decomp
...
Originally committed as revision 19053 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:38:17 +00:00
Reimar Döffinger
6065dcea37
Remove unnecessary put_bits/get_bits includes.
...
Originally committed as revision 19052 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:37:05 +00:00
Reimar Döffinger
2bee59083d
Use bytestream_get_le16 to simplify offset/count calculation for mszh decompression.
...
Originally committed as revision 19051 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:35:39 +00:00
Reimar Döffinger
5a18221ba8
Remove useless & 0x1f
...
Originally committed as revision 19050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:31:37 +00:00
Reimar Döffinger
7b151a98b0
Document padding requirements of mszh_decomp srcptr buffer
...
Originally committed as revision 19049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:28:40 +00:00
Reimar Döffinger
5e5fe7dab5
Use srcptr_end variable to avoid having to update both srcptr and srclen.
...
Originally committed as revision 19048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:26:58 +00:00
Reimar Döffinger
dbc53ffc7c
Change buffer size checks to avoid the undefined overflow case.
...
Originally committed as revision 19047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:23:38 +00:00
Reimar Döffinger
2fddb91e94
Simply use memcpy instead of AV_RN32/AV_WN32 combination.
...
Originally committed as revision 19046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:16:28 +00:00
Reimar Döffinger
661cb0d4a9
Fix decoding of multithread-encoded lcl files on big-endian.
...
Originally committed as revision 19045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:14:27 +00:00
Reimar Döffinger
ce22c7d075
Remove another useless ()
...
Originally committed as revision 19044 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:05:21 +00:00
Reimar Döffinger
21bf2f51d7
Correct calculation of compressed input length.
...
Originally committed as revision 19043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 10:01:26 +00:00
Reimar Döffinger
46adcc27a2
Add sanity check for mthread_inlen, avoids crashes due to invalid reads.
...
Originally committed as revision 19042 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:59:46 +00:00
Reimar Döffinger
1207c84adb
Use FFMIN
...
Originally committed as revision 19041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:57:42 +00:00
Reimar Döffinger
c2c0c1c023
Factor out zlib decompression code to avoid massive code duplication,
...
particularly due to error checks.
Originally committed as revision 19040 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:51:46 +00:00
Reimar Döffinger
f005808bf2
Use FFALIGN
...
Originally committed as revision 19039 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:28:29 +00:00
Reimar Döffinger
46c02b1b50
Move variable into block where it is used, avoiding a unused variable
...
warning if the zlib decoder is disabled.
Originally committed as revision 19038 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:27:07 +00:00
Reimar Döffinger
2b550f816a
Make lcldec less annoyingly verbose, move messages from AV_LOG_INFO to AV_LOG_DEBUG.
...
Originally committed as revision 19037 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:23:54 +00:00
Reimar Döffinger
75f6d6c7e6
Get rid of unreachable code: avctx->codec_id == CODEC_ID_ZLIB is not possible
...
here when the zlib decoder is disabled and libavcodec is used correctly.
Originally committed as revision 19036 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:19:21 +00:00
Reimar Döffinger
56b44694bd
lcldec.c: change #if CONFIG_ZLIB to #if CONFIG_ZLIB_DECODER.
...
The zlib related code should not be compiled in when the decoder is disabled
and it thus will never be used, even if we have zlib available.
Originally committed as revision 19035 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:16:06 +00:00
Reimar Döffinger
445e0ab539
Get rid of extradata casts, it already has the right uint8_t * type
...
Originally committed as revision 19034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:12:17 +00:00
Reimar Döffinger
8c18e490c4
Make lcldec produce YUV output when the input file is coded like that, instead
...
of having it do its own inefficient fixed-point YUV to RGB conversion.
Originally committed as revision 19033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 09:09:32 +00:00
Reimar Döffinger
55619690e8
Remove now unused elements from LclEncContext
...
Originally committed as revision 19032 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 08:54:41 +00:00
Reimar Döffinger
3b855101b4
Remove useless casts, extradata is already "uint8_t *"
...
Originally committed as revision 19031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 08:51:30 +00:00
Reimar Döffinger
e786d3cf80
lclenc.c: compress directly into output buffer instead of using a pointless
...
temporary buffer and then using put_bits to copy the data over.
Originally committed as revision 19030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 08:49:27 +00:00
Reimar Döffinger
32b3ab9b60
Remove superfluous () from lclenc.c
...
Originally committed as revision 19028 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 08:41:11 +00:00
Reimar Döffinger
8f033e3e03
Cosmetics: fix indentation in lclenc.c
...
Originally committed as revision 19027 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 08:38:51 +00:00
Reimar Döffinger
7ff7ac60e1
Remove "#if CONFIG_ZLIB" checks from lclenc.c, the file is never compiled
...
if zlib is not available.
Originally committed as revision 19026 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 08:36:44 +00:00
Andreas Öman
f988ce6cad
Add a lock manager API to libavcodec.
...
Allows an application to register a callback that manages mutexes
on behalf of FFmpeg.
With this callback registered FFmpeg is fully thread safe.
Originally committed as revision 19025 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 06:51:18 +00:00
Baptiste Coudurier
b8df8d0d1c
remove cast and use put_sbits, fix assertion in put_bits
...
Originally committed as revision 19024 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 06:33:58 +00:00
Baptiste Coudurier
19c0563ac2
fix compilation with DEBUG defined
...
Originally committed as revision 19015 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 04:26:22 +00:00
Alexander Strange
2b9969a945
H264: Fix out of bounds reads in SSSE3 MC
...
Reading above src[-2] isn't safe, so move loads and palignr ahead
3 pixels to load starting at the first pixel actually used.
Fixes issue941.
Originally committed as revision 18999 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-30 22:19:14 +00:00