Reimar Döffinger
dbc53ffc7c
Change buffer size checks to avoid the undefined overflow case.
...
Originally committed as revision 19047 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
2fddb91e94
Simply use memcpy instead of AV_RN32/AV_WN32 combination.
...
Originally committed as revision 19046 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
661cb0d4a9
Fix decoding of multithread-encoded lcl files on big-endian.
...
Originally committed as revision 19045 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
ce22c7d075
Remove another useless ()
...
Originally committed as revision 19044 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
21bf2f51d7
Correct calculation of compressed input length.
...
Originally committed as revision 19043 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
46adcc27a2
Add sanity check for mthread_inlen, avoids crashes due to invalid reads.
...
Originally committed as revision 19042 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
1207c84adb
Use FFMIN
...
Originally committed as revision 19041 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
c2c0c1c023
Factor out zlib decompression code to avoid massive code duplication,
...
particularly due to error checks.
Originally committed as revision 19040 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
f005808bf2
Use FFALIGN
...
Originally committed as revision 19039 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
46c02b1b50
Move variable into block where it is used, avoiding a unused variable
...
warning if the zlib decoder is disabled.
Originally committed as revision 19038 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
2b550f816a
Make lcldec less annoyingly verbose, move messages from AV_LOG_INFO to AV_LOG_DEBUG.
...
Originally committed as revision 19037 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
75f6d6c7e6
Get rid of unreachable code: avctx->codec_id == CODEC_ID_ZLIB is not possible
...
here when the zlib decoder is disabled and libavcodec is used correctly.
Originally committed as revision 19036 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
56b44694bd
lcldec.c: change #if CONFIG_ZLIB to #if CONFIG_ZLIB_DECODER.
...
The zlib related code should not be compiled in when the decoder is disabled
and it thus will never be used, even if we have zlib available.
Originally committed as revision 19035 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
445e0ab539
Get rid of extradata casts, it already has the right uint8_t * type
...
Originally committed as revision 19034 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
8c18e490c4
Make lcldec produce YUV output when the input file is coded like that, instead
...
of having it do its own inefficient fixed-point YUV to RGB conversion.
Originally committed as revision 19033 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
55619690e8
Remove now unused elements from LclEncContext
...
Originally committed as revision 19032 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
3b855101b4
Remove useless casts, extradata is already "uint8_t *"
...
Originally committed as revision 19031 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
e786d3cf80
lclenc.c: compress directly into output buffer instead of using a pointless
...
temporary buffer and then using put_bits to copy the data over.
Originally committed as revision 19030 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
32b3ab9b60
Remove superfluous () from lclenc.c
...
Originally committed as revision 19028 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
8f033e3e03
Cosmetics: fix indentation in lclenc.c
...
Originally committed as revision 19027 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
7ff7ac60e1
Remove "#if CONFIG_ZLIB" checks from lclenc.c, the file is never compiled
...
if zlib is not available.
Originally committed as revision 19026 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Andreas Öman
f988ce6cad
Add a lock manager API to libavcodec.
...
Allows an application to register a callback that manages mutexes
on behalf of FFmpeg.
With this callback registered FFmpeg is fully thread safe.
Originally committed as revision 19025 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
b8df8d0d1c
remove cast and use put_sbits, fix assertion in put_bits
...
Originally committed as revision 19024 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
19c0563ac2
fix compilation with DEBUG defined
...
Originally committed as revision 19015 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Alexander Strange
2b9969a945
H264: Fix out of bounds reads in SSSE3 MC
...
Reading above src[-2] isn't safe, so move loads and palignr ahead
3 pixels to load starting at the first pixel actually used.
Fixes issue941.
Originally committed as revision 18999 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
bb79016851
Use memcpy instead of per-pixel copy loop for rgb lcl format
...
Originally committed as revision 18997 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
ff8c65f482
Make sure offsets of mjpeg b are within the buffer.
...
Fixes issue1132
Originally committed as revision 18996 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
c40f366372
Remove useless () from lcldec for more consistency with "normal" FFmpeg coding style.
...
Originally committed as revision 18995 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
b157e3e56b
Add casts to v210x decoder to avoid warnings.
...
Originally committed as revision 18994 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
3bbcd0bb8a
The GIF decoder uses get_buffer, so set DR1.
...
Originally committed as revision 18990 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
87e302bfd8
remove unused hack which set AVCodecContext frame_number to pic timestamp
...
Originally committed as revision 18988 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
2d05bc8641
set pict_type in VC-1 parser, fix some timestamps problems
...
Originally committed as revision 18987 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
f2264fa531
Support block-level quantization in Theora
...
Originally committed as revision 18986 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
abeee5ccb8
Use av_clip_uint8 instead of equivalent but unoptimzed code,
...
Originally committed as revision 18985 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
9d48e28f00
MIPS: add MIPS64 and Loongson asm for MAC64/MLS64
...
Originally committed as revision 18979 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
b716a79215
blackfin: disable broken dsputil functions
...
Originally committed as revision 18977 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
2ba73ce8c6
blackfin: add missing const in function prototypes
...
Originally committed as revision 18976 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
b195a73d47
blackfin: use optimised (I)DCT only when ctx->(i)dct_algo is auto
...
Originally committed as revision 18975 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
08ec1397f6
blackfin: use DCT function pointer in dct_quantize_bfin()
...
Originally committed as revision 18974 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
c9311a12d5
ARM: add some PLD in NEON IDCT
...
Originally committed as revision 18972 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
2ed16f308a
msrle uncompressed decoding, fix #1074 and many other samples under /RLE
...
Originally committed as revision 18970 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
c0601d705c
remove apparently unused real_pict_num from AVCodecContext
...
Originally committed as revision 18969 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
a4a750d3b2
Rename alloc_picture to ff_alloc_picture and move its definition
...
in mpegvideo.h to avoid including mpegvideo_common.h in mpeg12.c,
because it contains motion code.
Originally committed as revision 18968 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jeff Downs
50352827f6
Use AV_R/WN32 instead of direct integer copying.
...
Fixes decoding on at least Sparc/Solaris where unaligned accesses cause
crashes.
ML thread: http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/91414
Originally committed as revision 18967 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
25178da302
do not print false error if eof follows eol
...
Originally committed as revision 18965 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Wolfram Gloger
ed1dc74e18
Fix off by one offset with fetch_timestamps, pts_parser_problem.mpg.
...
Patch by Wolfram Gloger, wmglo at dentm dot med dot uni-muenchen dot de.
Originally committed as revision 18959 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
6645e8ca2f
do not reference remainder packets in the parser, fix timestamps fetching
...
Originally committed as revision 18958 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Alex Converse
401a995085
In the event of a mismatch, do not follow the sample rate index in an AAC PCE.
...
This matches the behavior the reference decoder and fixes issue 1072.
Originally committed as revision 18957 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
cd840656c2
Add lowres support to the libopenjpeg wrapper.
...
Fixes issue 1097.
Originally committed as revision 18955 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
d95545166c
Use dimensions stored in AVCodecContext instead of local variables.
...
Originally committed as revision 18954 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago