Jai Menon
0bf095a837
Allow decoders to correctly set the sample format by defaulting to
...
SAMPLE_FMT_NONE in avcodec_get_context_defaults2.
Originally committed as revision 20623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 20:46:13 +00:00
Stefano Sabatini
14b903f389
Remove x_chroma_shift and y_chroma_shift fields from PixFmtInfo, use
...
av_pix_fmt_descriptors log2_chroma_w and log2_chroma_h values instead.
Originally committed as revision 20622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 20:00:03 +00:00
Måns Rullgård
4f898e77fb
Revert "Add required header #include to fix 'make checkheaders'."
...
config.h must not be included in that file. The table generator runs
on the host system, but config.h describes the target.
Originally committed as revision 20620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 10:06:41 +00:00
Diego Biurrun
e137934fae
cosmetics: K&R style, prettyprinting
...
Originally committed as revision 20619 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 09:59:10 +00:00
Diego Biurrun
c73ce8e259
Mark apply_mdct() function as static; it is only used within the file.
...
Originally committed as revision 20618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 09:55:03 +00:00
Stefano Sabatini
38264abb06
Use av_pix_fmt_descriptors in avcodec_get_chroma_sub_sample(), rather
...
than the PixFmtInfo x_chroma_shift and y_chroma_shift fields.
Originally committed as revision 20617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 00:33:19 +00:00
Stefano Sabatini
8e861e1b1e
Use av_pix_fmt_descriptors in ff_is_hwaccel_pix_fmt() rather than
...
access the PixFmtInfo.is_hwaccel field which is going to be removed.
Originally committed as revision 20616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-25 23:52:20 +00:00
Diego Biurrun
ff09a99ef5
-DFRAC_BITS must be added to CPPFLAGS when compiling mpegaudio_tablegen.ho.
...
Originally committed as revision 20613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-25 23:29:36 +00:00
Diego Biurrun
154f5b5c9b
Add required header #include to fix 'make checkheaders'.
...
Originally committed as revision 20612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-25 23:24:09 +00:00
Ramiro Polla
f2526204a4
Fix nv12/nv21 handling. linesize for plane 1 should account for both chroma
...
planes instead of just doubling the height while computing plane sizes. Also
adjust avpicture_layout() to copy the correct amount of data for plane 1.
Originally committed as revision 20610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-25 17:14:48 +00:00
David Conrad
800841fd0c
Support compiling against libtheora older than 1.1
...
Originally committed as revision 20609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-25 16:00:14 +00:00
Vitor Sessak
691a4232ee
Make lsp2polyf() function non-static for upcoming usage in SIPR
...
Originally committed as revision 20602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-24 16:58:50 +00:00
Jason Garrett-Glaser
096c87f667
Add weightp support in API for libx264.
...
ffmpeg can encode baseline profile again.
Originally committed as revision 20600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-24 15:49:34 +00:00
Reimar Döffinger
f3bdc3da15
Call ff_find_hwaccel() after calling avcodec_set_dimensions().
...
Patch by Reimar
Originally committed as revision 20599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-24 15:13:47 +00:00
Måns Rullgård
8b4a6d47b2
WMA: extend exponent range to 95
...
Hopefully this will be enough. Fixes issue 1565 (again).
Originally committed as revision 20598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-24 10:10:39 +00:00
Kostya Shishkov
d90aeeaf56
Call avcodec_set_dimensions() instead of simply setting avctx->width/height
...
when frame dimensions change in RV3/4.
Originally committed as revision 20595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-24 06:05:41 +00:00
Vitor Sessak
9401357f01
Add missing include. Fix the following compiler warnings:
...
twinvq.c: In function 'decode_lsp':
twinvq.c:575: warning: implicit declaration of function 'ff_sort_nearly_sorted_floats'
Originally committed as revision 20594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-23 22:28:45 +00:00
Måns Rullgård
168f92ffaa
WMA: extend exponent table up to 75
...
Fixes issue 1565.
Originally committed as revision 20593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-23 22:22:16 +00:00
Michael Niedermayer
4c66e8849b
Use avcodec_set_dimensions()
...
Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-23 19:45:40 +00:00
Michael Niedermayer
e026902a62
Correct order of arguments for avcodec_check_dimensions().
...
Originally committed as revision 20590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-23 19:24:17 +00:00
Michael Niedermayer
4687f908c6
Make sure avcodec_set_dimensions() is used when rv20 changes resolution.
...
This should fix lowres resolution changes.
Originally committed as revision 20589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-23 19:22:19 +00:00
Vitor Sessak
419b2be813
Make sorting function used in TwinVQ a shared function
...
Originally committed as revision 20584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-22 22:25:58 +00:00
David Conrad
6c2289b52e
Set colorspace for libtheora encoding
...
Originally committed as revision 20583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-22 21:08:46 +00:00
David Conrad
af89b1781f
Support 4:2:2 and 4:4:4 subsampling in libtheora encoding
...
Originally committed as revision 20582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-22 21:08:43 +00:00
David Conrad
b0a6d9ca86
Add support for two pass encoding in libtheora
...
Originally committed as revision 20581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-22 21:08:40 +00:00
David Conrad
bdc8c48893
Update libtheora wrapper to use the 1.0 API
...
Originally committed as revision 20580 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-22 21:08:37 +00:00
Kostya Shishkov
ec10d2d539
Update dimensions in AVCodecContext when RV3/4 frame dimensions change
...
Originally committed as revision 20572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-22 07:48:35 +00:00
Alex Converse
4e878a1898
10l: Fix inverted if-condition from r20448. Fixes issue 1562.
...
Originally committed as revision 20570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-21 20:56:46 +00:00
Robert Krüger
ce34ff6b45
Factorize av_get_bit_rate (for future use outside of libavcodec).
...
Patch by Robert Krüger, krueger signal7 de
Originally committed as revision 20569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-21 09:58:15 +00:00
Michael Niedermayer
98c82d6910
Allocate pictures with enough padding for jpeg.
...
Ensure that jpeg does not use mbs that could require larger padding.
This might have been exploitable.
Originally committed as revision 20566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 22:14:37 +00:00
Reimar Döffinger
9fe0894210
In win32 thread implementation do not access jobnr if the thread is asked
...
to terminate, jobnr it does not point to a valid location in that case.
Originally committed as revision 20565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 21:08:26 +00:00
Daniel Verkamp
0aa6a518ad
Add codec id for Flash screen codec v2 and hook it up in FLV demuxer
...
Originally committed as revision 20563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 19:16:42 +00:00
Ramiro Polla
b16569d256
Indent
...
Originally committed as revision 20562 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 11:38:37 +00:00
Kostya Shishkov
76267e4e90
Implement missing case for decoding samples with large pivot value in APE
...
decoder.
This fixes issue 1555
Originally committed as revision 20560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 07:49:53 +00:00
Kostya Shishkov
e4de5b0fb5
cosmetics: break some long lines and insert few spaces
...
Originally committed as revision 20559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 07:26:17 +00:00
Kostya Shishkov
dd562761d9
10l trocadero: ZMBV encoder used zero score to detect whether block should be
...
XORed with source one or not, which went wrong with new block comparing code.
So track this condition explicitly.
Originally committed as revision 20558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 07:22:41 +00:00
Baptiste Coudurier
cb893cf386
avoid integer overflow in dnxhd encoder, fixes #1557
...
Originally committed as revision 20557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-20 00:13:34 +00:00
Baptiste Coudurier
a4fcd9966b
clarify why the encoder is failing
...
Originally committed as revision 20556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-19 23:28:21 +00:00
Stefano Sabatini
bf72597ef4
Fix name for PIX_FMT_NV21 PixFmtInfo entry.
...
Originally committed as revision 20555 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-19 22:56:57 +00:00
Reimar Döffinger
b711aaa2d8
Disable image flipping during JPEG decoding if CODEC_FLAG_EMU_EDGE is set
...
instead of either aborting on the assert or crashing due to writing beyond
the array due to insufficient padding.
Originally committed as revision 20552 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-19 11:49:03 +00:00
Baptiste Coudurier
8a724ed84d
Revert r20548, it was a dream. It seems faad does not ouput the last frame
...
in any case.
Originally committed as revision 20551 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-19 00:05:30 +00:00
Baptiste Coudurier
bceae2936f
faad needs CODEC_CAP_DELAY, otherwise you miss last frame
...
Originally committed as revision 20548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-18 21:01:42 +00:00
Diego Biurrun
c173693698
Add functions to return library license and library configuration.
...
Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-18 17:15:17 +00:00
Ronald S. Bultje
6e44ba1550
Use get_bits_left() instead of size_in_bits - get_bits_count().
...
Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-16 17:42:43 +00:00
Carl Eugen Hoyos
830628e11c
Cosmetics: Fix indentation.
...
Originally committed as revision 20542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-16 01:56:47 +00:00
Alex Converse
b3507d398b
Pad the extradata in the AAC ADTS to AudioSpecificConfig bitstream filter.
...
Originally committed as revision 20541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-15 19:40:44 +00:00
Vitor Sessak
b2bf3cfe32
Implement ff_decode_pitch_lag() that is used by both AMR and SIPR.
...
Based on code written by Colin McQuillan during his SoC project.
Originally committed as revision 20540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-15 10:41:46 +00:00
Thilo Borgmann
25c4fddadc
Merge data tables from als_data.h with the decoder source to reduce
...
code complexity.
Originally committed as revision 20536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-14 11:49:48 +00:00
Thilo Borgmann
93d38cf6b0
Add long-term prediction to the ALS decoder.
...
Originally committed as revision 20534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-14 06:29:19 +00:00
Justin Ruggles
7934cbb3be
ac3dec: apply dynamic range compression to correct channels in dual-mono mode.
...
Originally committed as revision 20533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-14 00:25:48 +00:00