Justin Ruggles
90fcac0e95
flacdec: allow mid-stream channel layout change
...
Although the libFLAC decoder cannot handle such a change, it is allowed by the
spec and could potentially occur with live streams.
12 years ago
Justin Ruggles
268f8ba112
flacdec: use av_samples_* functions for sample buffer allocation
...
Also, return an error on allocation failure.
12 years ago
Justin Ruggles
93e27f86f1
cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR
12 years ago
Justin Ruggles
8f173ef019
cook: move samples_per_frame from COOKSubpacket to where it is used
12 years ago
Justin Ruggles
7efbba2e36
cook: use av_get_channel_layout_nb_channels() instead of cook_count_channels()
12 years ago
Justin Ruggles
d21b2e4726
cook: reverse a condition so that the code makes more sense
12 years ago
Justin Ruggles
926e9d28f1
cook: remove unneeded COOKContext variable, sample_rate
12 years ago
Justin Ruggles
8aa5b8c5c8
cook: remove unneeded COOKContext variable, bit_rate
12 years ago
Justin Ruggles
3509eee19c
cook: use AVCodecContext.channels instead of keeping a private copy
12 years ago
Justin Ruggles
a3145d0335
bmvaudio: set channel layout at init() rather than validating it
12 years ago
Justin Ruggles
a38eadf7ed
atrac1: do not keep a copy of channel count in the private context
12 years ago
Justin Ruggles
4f56f9c48f
dsicinaudio: set channels and channel layout
12 years ago
Justin Ruggles
ec2694d259
g722dec: set channel layout at initialization instead of validating it
12 years ago
Justin Ruggles
ee0e9678e7
amrwbdec: set channels, channel_layout, and sample_rate
...
Only mono 16kHz is supported.
12 years ago
Justin Ruggles
b24a4449a5
amrnbdec: set channels, channel_layout, and sample_rate
...
Only mono 8kHz is supported.
12 years ago
Justin Ruggles
a4202003b2
dca_parser: allow the parser to change the sample rate
12 years ago
Justin Ruggles
0366664ef9
lavc: check channel count after decoder init
...
Ensures the decoder did not set channel count to an insanely high value
during initialization, which could cause large memory usage when it tries to
get a buffer during decoding.
12 years ago
Justin Ruggles
bb6941af2a
lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders
12 years ago
Paul B Mahol
bb9bc1fc98
flicvideo: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
010f1ce954
ffv1: assert that there is at least one slice
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Diego Biurrun
fa8fcab1e0
x86: h264_chromamc_10bit: drop pointless PAVG %define
...
It is only used in one place so there is no need for the abstraction.
12 years ago
Diego Biurrun
c37322e68c
x86: Move optimization suffix to end of function names
...
This simplifies cpuflags porting.
12 years ago
Diego Biurrun
d8eda37080
x86: mmx2 ---> mmxext in function names
12 years ago
Nick Brereton
09ea482d5d
Fix #1827 , segfault with XXCH samples when downsampling.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
5707af8d0b
aacdec: Drop some unused function arguments
12 years ago
Paul B Mahol
dc239b3b40
av_get_audio_frame_duration: add IAC
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
0e4d34e087
pix_fmt_info: add 9/10 bit YUVA formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
be923ed659
x86: fmtconvert: port to cpuflags
12 years ago
Diego Biurrun
be2c456e96
x86: fmtconvert: Refactor cvtps2pi emulation through cpuflags
12 years ago
Diego Biurrun
588fafe7f3
x86: MMX2 ---> MMXEXT in macro names
12 years ago
Diego Biurrun
652f518594
x86: mmx2 ---> mmxext in comments and messages
12 years ago
Diego Biurrun
04581c8c77
x86: yasm: Use complete source path for macro helper %includes
...
This is more consistent with the way we handle C #includes and
it simplifies the build system.
12 years ago
Diego Biurrun
6860b4081d
x86: include x86inc.asm in x86util.asm
...
This is necessary to allow refactoring some x86util macros with cpuflags.
12 years ago
Paul B Mahol
7adc600219
av_get_audio_frame_duration: add G723_1
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
28bcca46ed
av_get_audio_frame_duration: fix IMC
...
Fixes Ticket1658
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
b90d7840df
lavc: const correctness for avpicture_fill()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
8a4284adbf
ff: fix case where image does not have alpha channel
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Martin Storsjö
ab9545a290
cng: Reindent some incorrectly indented lines
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
6b68223d31
cngdec: Allow flushing the decoder
...
After a flush, don't average the output envelope and energy with
previous iterations.
Also start directly from the target values for the first iteration
at startup.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
036e6c37d3
cngdec: Make the dbov variable have the right unit
...
Previously the unit of the variable was Bov, not dBov.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
cafefd889b
cngdec: Fix the memset size to cover the full array
...
This was a leftover from previous iterations of the code, where the
refl coef arrays were statically allocated.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
9b50d20cd2
cngdec: Update the LPC coefficients after averaging the reflection coefficients
...
I somehow messed up the placement of this one.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
60e957476e
rawdec: check avpicture_get_size() return value
...
Fixes CID205019
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Carl Eugen Hoyos
d3de3a16d1
Partly revert f174fba: yop decoder does not support direct rendering.
12 years ago
Luca Barbato
7658295ba3
pixfmt: support more yuva formats
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Carl Eugen Hoyos
8bf44d5c96
Partly revert f174fba: indeo3 decoder does not support direct rendering.
12 years ago
Paul B Mahol
5f614bcf2c
vqavideo: return more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
4b7f34a34e
mpeg12videodec: dont pass mpeg1 VBR special case value on as bitrate.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Heesuk Jung
c349177b8c
mpeg12video_parser: Wrong bit rate in MPEG2 video file (Ticket #1862 )
...
mpegvideo parser sometime get wrong stream bit rate which is 0x3FFFF*400.
But maximum bit rate of MPEG2 video is up to 80 Mbps in case 1920x1080 resolution.
When bit rate is 0x3FFFF*400, set bit rate zero.
* Problematic link
https://docs.google.com/open?id=0B6r7ZfWFIypCUkhPa0dyTGdFSE0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
740959fdbf
mpeg12parser: cleanup bitrate parsing.
...
This fixes several bugs in the code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago