Stefano Sabatini
6808759a58
lavc/rawdec: fix various bogus error codes and add some logs
...
Help debugging.
13 years ago
Stefano Sabatini
3cc1a89881
lavc/utils: in avcodec_decode_video2() return proper error code instead of -1
...
Return AVERROR(EINVAL) in case of invalid coded size.
13 years ago
Paul B Mahol
be32145e9d
j2kdec: move s->avctx initialization to j2kdec_init()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
29e9f83192
j2kdec: check colorspace ncomponents
...
This prevents out of array read.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Clément Bœsch
b678daf05c
lavc/microdvddec: fix color parsing.
13 years ago
Clément Bœsch
47395a4f52
lavc/microdvddec: properly reset non persistent color tag.
13 years ago
J. Bohl
0719e44b58
new attribute "extern inline" (fixing linker error with ff_get_mb_score and ff_get_mb_score)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
a09ae4ef65
Remove duplicated png and mng signatures.
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Diego Biurrun
d246c18ea6
Avoid C99 variable declarations within for statements.
...
We generally do not declare variables within for statements and
there are compilers that choke on such constructs.
13 years ago
Michael Niedermayer
bb850480e1
mjpegenc: support slice multithreading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
ddece75bc8
png_parser: use designated initializers
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
79c39a98cf
Add truehd decoder line.
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
1b129c2abc
flashsv2enc: align codec declarations
...
While here constify enums for .pix_fmts.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
8ce0c7d264
g729dec: align codec declarations
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
225489f19b
mjpegdec: remove superfluous "mjpeg "
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
0f73ac3fc8
vqavideo: pass context to remaining av_(d)log
...
Finally get rid of all superfluous strings from av_log messages.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
dded4cb20b
lavc: fix support of unofficial pix_fmt extensions of jpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
c1d62489e1
libvorbis: split encoder from decoder
...
Also fix build dependencies while here.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Diego Biurrun
af10feadc2
ppc: Rename H.264 optimization template file for consistency.
13 years ago
Paul B Mahol
f06269dda5
cosmetics: align more codecs declarations
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Justin Ruggles
4795362660
golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()
...
Fixes infinite loop in FLAC decoding in case of a truncated bitstream due to
the safe bitstream reader returning 0's at the end.
Fixes Bug 310.
CC:libav-stable@libav.org
13 years ago
Paul B Mahol
a7fbc5d004
libvorbis: cosmetics: remove empty line at EOF
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
65efc66d8e
pngenc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7925f923a5
4xm: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nedeljko Babic
3827a86eac
Optimization of AMR NB and WB decoders for MIPS
...
AMR NB and WB decoders are optimized for MIPS architecture.
Appropriate Makefiles are changed accordingly.
Cnfigure script is changed in order to support optimizations.
Optimizations are enabled by default when compiling is done for
mips architecture.
Appropriate cflags are automatically set.
Support for several mips CPUs is added in configure script.
New ffmpeg options are added for disabling optimizations.
The FFMPEG option --disable-mipsfpu disables MIPS floating point
optimizations.
The FFMPEG option --disable-mips32r2 disables MIPS32R2
optimizations.
The FFMPEG option --disable-mipsdspr1 disables MIPS DSP ASE R1
optimizations.
The FFMPEG option --disable-mipsdspr2 disables MIPS DSP ASE R2
optimizations.
Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
751dcd9243
Remove eightsvx_raw decoder line
...
Decoder have been renamed to pcm_s8_planar long ago.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
709b54eae9
rv20enc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
37f1a7d51d
Make png-in-mov QuickTime-compatible for more colour-spaces.
...
Reported and tested by ami_stuff.
See ticket #1191 .
13 years ago
James Zern
cb7f062286
libvpxenc: add support for forced key frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a5ca3203f0
rangecoder: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1248de53c1
amrnbdec: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4e3a5bc1f6
j2k: remove unreachable assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9e724d7216
dct-test: fix alignment in ff_prores_idct_put_10_sse2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1321e6eaa7
tiffenc: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bcbb30e2a0
libmp3lame: add missing layout terminator
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Michael Niedermayer
3b196bb737
libavcodec/x86/rv40dsp_init.c: add missing HAVE_YASM
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
915ec91e6b
libavcodec/x86/h264dsp_mmx.c: add forgotten HAVE_YASM
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
63bfee8796
libavcodec/x86/dwt.c: move some missed things under HAVE_YASM
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b84c9cf7f7
dct-test: fix #if for ff_prores_idct_put_10_sse2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
dfaf2dd956
h264: use externally provided dimensions when they appear to be more correct.
...
This is based on:
commit 30f515091c
Author: Mans Rullgard <mans@mansr.com>
h264: allow cropping to AVCodecContext.width/height
The above commit is not taken as is as its buggy (incorrect handling of
the interlaced case) and didnt apply cleanly.
Fixes ticket156
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
3275981207
libopenjpegdec: make use of FF_ARRAY_ELEMS
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
James Zern
695e85f189
libvpxenc: add VP8E_SET_MAX_INTRA_BITRATE_PCT mapping
...
defines 'max-intra-rate' in line with vpxenc param
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
1ef5561a66
libopenjpeg: YUVA422P and YUVA444P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
8554e21f79
ffv1enc: add yuva422p to .pix_fmts
...
This was forgotten in 4e4634aa16
.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
J. Bohl
2138bc16fd
remove unreferenced table "dnxhd_1238_ac_index_flag" (empty curly braces did not compile with ICL12.1)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
a474403229
libopenjpegdec: unbreak yuva420p support
...
Regression introduced in b7a928b2d1
.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Mans Rullgard
30f515091c
h264: allow cropping to AVCodecContext.width/height
...
Override the frame size from the SPS with AVCodecContext values
if the latter specify a size smaller by less than one macroblock.
This is required for correct cropping of MOV files from Canon cameras.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
1b7a4c93a9
lavc/bintext: check extradata size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
c2dd01c16f
binkaudio: prevent extradata overread
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Kostya Shishkov
cac4760bf4
iac: generate codec tables as they are supposed to be
...
Unlike its predecessor, Indeo Audio codec generates tables depending on
sampling rate. Previously decoder used pre-generated tables for 22050 Hz
which obviously doesn't work with other frequencies.
Many thanks to Maxim Poliakovsky for providing all needed information
for this.
13 years ago