Dyami Caliri
50833c9f7b
Fix buffer_size argument to init_put_bits() in multiple encoders.
...
Several encoders were multiplying the buffer size by 8, in order to get
a bit size. However, the buffer_size argument is for the byte size of
the buffer. We had experienced crashes encoding prores (Anatoliy) at
size 4096x4096.
10 years ago
Michael Niedermayer
424ed1a83e
avcodec/faxcompr: Fix memleak
...
Fixes CID1270816
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
134e8c73ea
avcodec/faxcompr: use init_get_bits8()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Michael Niedermayer
713e62e91d
avcodec/faxcompr: use av_malloc_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Luca Barbato
a3b2b83f01
faxcompr: return meaningful errors
...
And optionally forward them to the caller instead of concealing them.
Unify err and ret in a single variable.
12 years ago
Luca Barbato
f32aefcf34
faxcompr: K&R formatting cosmetics
12 years ago
Michael Niedermayer
6f9ae391de
faxcompr: Dont read ref when the end has been reached in pass mode
...
Fixes reading over the end
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
98b7a50a21
tiffdec: Fix runend handling
...
Fixes Ticket1999
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5891e454a6
faxcompr: fix out of array read
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
438b86fed4
faxcompr: fix byte alignment case
...
Fixes Ticket1653
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3a1ca240d9
ccitt fax: fix some group3 1d files without EOL
...
Fixes Ticket832
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
99a335299f
faxcompr: Check malloc results and unify return path
13 years ago
Martin Storsjö
e96b4a53df
vlc/rl: Add ff_ prefix to the nonstatic symbols
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
f6f95d4e49
doxygen: consistently place brief description
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
badce93dad
Simplify r20025: use align_get_bits instead of reimplementing it.
...
Originally committed as revision 20079 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
a5568f4608
Make sure all the bits are written to output in fax data decoder.
...
This fixes decoding TIFF images with fax compression and width being not
multiple of eight (and issue 1429).
Originally committed as revision 20072 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
d2cdf20147
cosmetics: reindent and reformat function declarations
...
Originally committed as revision 20066 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
8da5d3dc37
Finally distinguish TIFF_CCITT_RLE and TIFF_G3 1-D case, so both of them
...
will be decoded correctly.
This fixes issue 1423.
Originally committed as revision 20065 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
a8c7a3d2c1
Fix decoding of TIFF CCITT RLE compressed data.
...
This fixes issue 1417.
Originally committed as revision 20025 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
b275500706
Split bitstream.h, put the bitstream writer stuff in the new file
...
put_bits.h.
Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
dc8a7c93d3
Add missing void keyword to parameterless function declarations.
...
Originally committed as revision 16860 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
a56f82eaf8
indent
...
Originally committed as revision 16348 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
537bf4266f
Simplify vertical mode
...
Originally committed as revision 16347 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
eb0094b224
And another sechole ...
...
Originally committed as revision 16346 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
268309750b
Fix yet another sechole.
...
Originally committed as revision 16345 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
11c5999e20
Fix another sechole.
...
Originally committed as revision 16344 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
2a522579aa
Minor simplification.
...
Originally committed as revision 16343 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
f78a679177
Remove unused run_start variable.
...
Originally committed as revision 16342 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
6f5c00eb9f
Move sync line pointers code to the end of the loop, it is simpler that way.
...
Originally committed as revision 16341 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
e3a54b6694
Get rid of check for condition that is always true (run_off < avctx->width).
...
Originally committed as revision 16340 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
43ba8f3545
Get rid of pix_left in the 2d code, it is simpler that way.
...
Originally committed as revision 16339 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
6fe68c7b97
Factorize "avctx->width + 2" out to avoid someone mistakenly changing
...
some but not all.
Originally committed as revision 16336 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
621e6525a6
cosmetic (moving pix_left update)
...
Originally committed as revision 16335 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
1d7985072c
Close gaping sechole. That is, a series of run=0 allows arbitrary data to
...
be written over the end of the runs array.
Originally committed as revision 16334 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
d02ab57a5f
minor simplification
...
Originally committed as revision 16333 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
66909bc4f1
Merge ff_ccitt_unpack_1d and 2d.
...
Originally committed as revision 16332 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
d68542f019
Ensure that an invalid run terminates the line.
...
Originally committed as revision 16331 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
ec5bdf4989
10l != vs. == (yes, my fault not kostya's).
...
Originally committed as revision 16330 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
679f3fa901
indent
...
Originally committed as revision 16329 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
68d48cc592
Simplify zero run handling in put_line().
...
Originally committed as revision 16328 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
bc0f7a9c75
Avoid negation in put_line().
...
Originally committed as revision 16327 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
4e60b64324
Factorize mode switching in put_line().
...
Originally committed as revision 16326 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
eb12536a31
Fix (rewrite) find_group3_syncmarker().
...
Originally committed as revision 16325 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
8d48db314e
CCITT Fax Group 3 and 4 decompression by kostya.
...
Will be activated after a little more reviewing and fixing by me.
Commited now, so as to not lose history of that.
Originally committed as revision 16323 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago