Paul B Mahol
a0348d0966
pnm: remove nonsense code
If maxval is more than 255 than each value takes 2 bytes with most
significant byte first.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
5eaeb4237b
ivi_common: dc_transform is needed for intra
Fixes CID90582 CID90536
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
712287ef45
ff_ac3_apply_rematrixing: set flags to NULL
This makes the code more robust
Related to CID703820
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
1b3dbe3f75
lcldec: fix decoding of uncompressed rgb24 sample
Sample from ticket #1216 does not use any compression but bitstream
claims it is. Reference decoder decodes sample just fine.
Fixes #1216 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
a15adabdd3
aacsbr: fix integer overflow
Fixes CID603186
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
b5d496f3a4
Support new transparency colour-spaces with libopenjpeg.
Reviewed-by: Michael Bradshaw
13 years ago
Paul B Mahol
b0428741c6
indeo3: move get_buffer() above decode_plane() calls
This ensure that decode_plane() mmx code like AV_COPY64()
does not interfere with possible float instructions in
release_buffer/get_buffer.
Found-by: Carl Eugen Hoyos
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
bbd7b46b94
sab_diamond_search: add assert to double check the minima_count
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c9e4554329
cook: fix use of uninitialized variable
Fixes CID741418
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
aa48446c9a
lavc/xfaceenc: prefer do{}while() over for(){} construct in xface_encode_frame() loop
Slightly simplify readability, since the initial check is unnecessary.
13 years ago
Xidorn Quan
0ecef3a0ef
amr_decode_fix_avctx should not return value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
0372ecfa48
lavc/options_table: force non-negative bitrate range
It does not make sense to set a negative bitrate.
13 years ago
Michael Niedermayer
930226cf52
crystalhd: fix missing braces warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
1c755f7667
lavc/options_table: make "request_sample_fmt" an AV_OPT_TYPE_SAMPLE_FMT option
Simplify, increase robustness in case a new sample format is added.
13 years ago
Michael Niedermayer
d3dfe99bc5
libgsmdec: fix decoding of non 8khz gsm files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6e6033b793
gsmdec: fix decoding of non 8khz gsm files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
20ac916e6d
indeo3: release buffer before calling decode_plane
13 years ago
Paul B Mahol
b02116cc4a
Revert "Partly revert f174fba: indeo3 decoder does not support direct rendering."
f174fba did not introduce DR1 flag it was already available before that.
This reverts commit 8bf44d5c96 .
13 years ago
Michael Niedermayer
4ad6ef00a2
libvo-amrwbenc: allow sampling rates other than 16khz
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b30f4510d8
libopencore-amr: allow sampling rates other than 8khz
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0aaf0a07d4
libopencore-amrdec: allow sampling rates other than 8khz
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2c1e9383a2
amrwbdec: allow sample rates other than 16khz
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d8aaec38fc
amrnbdec: allow sample rates other than 8khz
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
f58f600c68
lclenc: make compression level user selectable
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Heesuk Jung
25b7aa980b
Fix bit_rate in MPEG1/2 Video
In ISO/IEC 13818-2, bit rate is differently determined according to video type
1) MPEG1 Video
Bit_rate and vbv_delay are set to 3FFFF and FFFF respectively
to indicate variable bitrate. Other values are for constant bitrate.
VBV is only defined for constant bit rate operation.
Ths STD supersedes the VBV model for vbr.
2) MPEG2 Video
Even if the bitrate is constant, the value of bit_rate may not be the actual bitrate
since bit_rate need only be an upper bound to that actual bitrate.
VBV is only defined for variable bit rate operation.
Constant bit rate is viewed as a special case of vbr.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
77d89a5b16
apedec: consume packet after it has been fully decoded
Timestamp handling of decoded frames are much simpler now.
Fixes #1675 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Diego Biurrun
0a7a94f2e5
x86: Refactor PSWAPD fallback implementations and port to cpuflags
13 years ago
Diego Biurrun
9a07c1332c
parser: Move Doxygen documentation to the header files
13 years ago
John Stebbins
85f67c4865
PGS subtitles: Expose forced flag
Useful for detection of subtitles displayed during foreign language
scenes.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Diego Biurrun
26f01bd106
x86: PMINUB: port to cpuflags
13 years ago
Diego Biurrun
9ce02e14f0
x86: ac3dsp: port to cpuflags
13 years ago
Nicolas George
805b57001f
lavc/pngdec: decode textual data (tEXt and zTXt).
Requested in trac ticket #1857 .
13 years ago
Michael Niedermayer
00aa7fa786
pcm: fix handling of more than 8 channels for planar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
0876c28080
lavc: add some AVPacket doxy.
13 years ago
Ilkka Ollakka
6d1270a0f9
decode_audio3: initialize AVFrame
Same fix and issue as in a25d912dca
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Justin Ruggles
5459848b14
ws-snd1: set channel layout
13 years ago
Justin Ruggles
f7b8506573
wmavoice: set channel layout
13 years ago
Justin Ruggles
50a65e7a54
vmdaudio: set channel layout
13 years ago
Justin Ruggles
002097a00b
wmapro: use AVCodecContext.channels instead of keeping a private copy
13 years ago
Justin Ruggles
b5f628e227
twinvq: validate sample rate code
A large invalid value could cause undefined behavior when left-shifted
by 8 later in the function.
13 years ago
Justin Ruggles
2ed40608e9
wma: do not keep private copies of some AVCodecContext fields
channels, sample_rate, bit_rate, and block_align can be used directly from
the AVCodecContext
13 years ago
Justin Ruggles
335826cf5f
twinvq: set channel layout
13 years ago
Justin Ruggles
8cc72ce5a0
twinvq: validate that channels is not <= 0
This could occur due to integer overflow when reading the channel count from
the extradata.
13 years ago
Justin Ruggles
cebea00c8a
truespeech: set channel layout
13 years ago
Justin Ruggles
523734eb6a
sipr: set channel layout
13 years ago
Justin Ruggles
4c53f4aed3
shorten: validate that the channel count in the header is not <= 0
13 years ago
Justin Ruggles
4e13e50432
ra288dec: set channel layout
13 years ago
Justin Ruggles
6159f64364
ra144dec: set channel layout
13 years ago
Justin Ruggles
eb38d8fe92
qdm2: remove unneeded checks for channel count
13 years ago
Justin Ruggles
be2ab8b75a
qdm2: make sure channels is not <= 0 and set channel layout
13 years ago