Stefano Sabatini
7030501383
libopenjpeg: set internal frame defaults
...
Fix ffmpeg decoding, which was broken after the recent changes in
vsrc_buffer.
14 years ago
Reimar Döffinger
6fd00e9dd9
aacdec: add decode_channel_map overread check
...
All decode_channel_map calls together can easily read
more data than the amount of padding available.
Thus below patch adds an input length check before reading them.
Fixes some invalid reads with sample from
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1138
14 years ago
Stefano Sabatini
01042d4123
lavc: set defaults in internal codec frames
...
This is required specifically for setting frame->format to -1,
otherwise it will be set to 0 = PIX_FMT_YUV420P and code reading
the format from the output decoded frame will get misled.
In particular fix regressions occurring with the pending vsrc_buffer
patch.
14 years ago
Stefano Sabatini
18ded93ab3
lavc: add format field to AVFrame
...
The format is a per-frame property, having it in AVFrame simplify the
operation of extraction of that information, since avoids the need to
access the codec/stream context.
14 years ago
Stefano Sabatini
22333a6b19
lavc: add width and height fields to AVFrame
...
width and height are per-frame properties, setting these values in
AVFrame simplify the operation of extraction of that information,
since avoids the need to check the codec/stream context.
14 years ago
Reimar Döffinger
f44967b1b5
Use av_fast_malloc instead of av_fast_realloc.
...
Avoids a memleak, is less code and might be faster.
14 years ago
Reimar Döffinger
20e5d64a1a
msvideo1enc: minor cosmetic cleanup, use FFALIGN, avoid calculating value
...
twice and add a missing "const".
14 years ago
Michael Niedermayer
c25a8d7dfb
mpegvideo: fix 422 lowres
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
JULIAN GARDNER
423986fc09
Allow encodiing empty subtitles.
14 years ago
Alex Converse
869303bebd
wmavoice: Use proper size in memeset().
...
sizeof(array_functrion_argument) gives the size of the pointer type not
the size of the array to which it points.
14 years ago
Baptiste Coudurier
0fa8d19987
In svq3 decoder, check negative mb_type, fix potential crash.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
757ec2d7e7
MPEG: support 4:4:4 lowres
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
59b9c75d0e
MPEG: support 4:4:4 intra lowres
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
2264c11081
SVQ3: do not modify const input buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
b0e7a932e6
SVQ3: Check that things match up after a frame.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
8811679c8e
SVQ3: Move svq3 specific fields to their own context.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
334187ade7
Fix "libavcodec/dfa.c:189: warning: unused variable ‘frame_end’"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
JULIAN GARDNER
e822c237b3
dvbsubdec: Split delete_state()
14 years ago
Michael Niedermayer
9522a752bf
xsubenc: only 1 rectangle is supported so dont allow 0 as it would crash.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
d7c91c4cea
sonic: fix sonic decoder to match encoder for sample rates other than 44100.
14 years ago
Michael Niedermayer
105a3c7a6b
bitstream_reader: Try to fix "get_bits.h:305:45: warning: variable ‘re_cache’ set but not used [-Wunused-but-set-variable]"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
61165a1bba
Fix standalone compilation of WTV demuxer.
14 years ago
Diego Biurrun
091018e0dd
Fix standalone compilation of MXPEG decoder.
14 years ago
Diego Biurrun
35e376b0d2
flashsv: K&R cosmetics
14 years ago
Michael Niedermayer
3acc44b739
bitstream reader: remove unneeded variable initilization.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
7d2e03afc8
vc1: make overlap filter for I-frames bit-exact.
14 years ago
Ronald S. Bultje
5c9f147e05
vc1dec: use s->start/end_mb_y instead of passing them as function args.
14 years ago
Ronald S. Bultje
18b6a69ce9
Revert "VC1: merge idct8x8, coeff adjustments and put_pixels."
...
This reverts commit f8bed30d8b
. The reason
for this is that the overlap filter, which runs after IDCT, should run
on unclamped values, and thus IDCT and put_pixels() cannot be merged if
we want to attempt to be bitexact.
14 years ago
Alex Converse
1a5e4fd8c5
Replace strncpy() with av_strlcpy().
14 years ago
Alex Converse
aab6374bbe
indeo3: Eliminate use of long.
14 years ago
Alex Converse
47bc52f821
get_bits: make cache unsigned to eliminate undefined signed overflow.
14 years ago
Ronald S. Bultje
d969e93a72
mpegvideo: reindent.
14 years ago
Ronald S. Bultje
fb22c23715
mpegvideo: don't av_malloc(0).
14 years ago
Kostya Shishkov
e4be3485af
MS Video 1 encoder
14 years ago
ami_stuff
c402ce418a
Remove lowres support from wmv2 decoder
...
lowres option crashes with wmv2 files which I have for test,
so I think it's better to remove the support to the time when
lowres will be really supported by this codec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
7d70d1937a
Support decoding of 24 bit True Audio samples-
...
Many samples will fail because "Output buffer size is too small."
14 years ago
Carl Eugen Hoyos
4cf2e30f05
Support decoding of 8 bit True Audio samples-
...
Many samples will fail because "Output buffer size is too small."
14 years ago
Carl Eugen Hoyos
fba418e670
Do not assume AV_SAMPLE_FMT_S16 as tta sample format.
14 years ago
Alexandre Colucci
3b4621acbb
Fix init_get_bits length argument for init_get_bits.
...
Do not use rlelen for buffer size in init_get_bits, it is
only the size of the data for the first field.
Since it is not reliable, just use the size of the whole buffer.
Additional comments add removal of unused rlelen variable by
Reimar Döffinger.
14 years ago
Reimar Döffinger
cf16104ad1
Change guess_palette so its output matches the most common palette.
...
This means it uses full brightness range and brightness
increasing instead of decreasing with index of non-opaque
color.
Based on patch by Alexandre Colucci [alexandre elgato com]
14 years ago
Ronald S. Bultje
4773d90421
vp8: frame-multithreading.
...
Tested on a Mac Pro, 2 CPUs, 2 cores each, OSX 10.6.6:
time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \
~/Downloads/sintel_trailer_1080p_vp8_vorbis.webm \
-f null -vcodec rawvideo -an -
1: 0m14.630s (89.9 fps)
2: 0m8.056s (163.2 fps)
3: 0m5.882s (223.6 fps)
4: 0m4.952s (265.6 fps)
time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \
~/Downloads/Elephants_Dream-720p-Stereo.webm \
-f null -vcodec rawvideo -an -
1: 1m12.962s (215.1 fps)
2: 0m44.682s (351.2 fps)
3: 0m31.183s (503.2 fps)
4: 0m25.284s (620.6 fps)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
14 years ago
Stefano Sabatini
301183d9be
replace deprecated av_get_pict_type_char() with av_get_picture_type_char()
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Stefano Sabatini
6209669de4
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Kostya Shishkov
b178cd76b2
dpx: Do not use DPX encoder for decoding.
...
10l to the one who hasn't checked this.
14 years ago
Michael Niedermayer
007d352c1c
dct-test: Support testing bits>8
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
ad1862d64a
ALPHA: Replace sized int_fast integer types with plain int/unsigned.
...
int/unsigned is the natural memory access type for CPUs, using sized types
for temporary variables, counters and similar just increases code size and
can possibly cause a slowdown.
14 years ago
Peter Ross
e27ce0eea3
DPX image encoder
14 years ago
Peter Ross
406629150c
DPX decoder: read sample aspect ratio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago