Diego Biurrun
15b4f494fc
mss*: Change type of array stride parameters to ptrdiff_t
...
ptrdiff_t is the correct type for array strides and similar.
8 years ago
Anton Khirnov
6755eb5b21
mss12: validate display dimensions
...
The code currently reads the coded dimensions from the extradata, but
expects the display dimensions to be set by the caller, and does not
check that they are compatible (i.e. that the displayed size is smaller
than the coded size).
Make sure that when the display dimensions are set, they are also valid.
Fixes possible invalid memory access.
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
9 years ago
Diego Biurrun
cc8163e1a3
avcodec: more correct printf specifiers
11 years ago
Alberto Delmás
344fbc47c7
mss12: merge decode_pixel() and decode_top_left_pixel()
...
No meaningful generated code differences using gcc -O3.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Alberto Delmás
626c1a33ed
mss12: reduce SliceContext size from 1067 to 164 KB
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Alberto Delmás
a97ee41bee
mss12: move SliceContexts out of the common context into the codec contexts
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Alberto Delmás
ede3d6400d
MSS1 and MSS2: set final pixel format after common stuff has been initialised
...
This way it won't interfere with WMV9 initialisation inside MSS2 decoder and
avplay will play it fine.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Alberto Delmás
ee769c6a7c
MSS2 decoder
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Kostya Shishkov
0de4a563e4
mss1: move code that will be reused by MSS2 decoder into separate file
13 years ago
Kostya Shishkov
49df339f4b
mss1: merge decode_intra() and decode_inter()
...
They have most of their code in common.
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Kostya Shishkov
ed219ed366
mss1: fix decoding masked regions in interframes
...
Spotted by Alberto Delmás
13 years ago
Kostya Shishkov
15358ade15
mss1: validate number of changeable palette entries
13 years ago
Kostya Shishkov
8f5d573a83
mss1: report palette changed when some additional colours were decoded
13 years ago
Kostya Shishkov
005c80b645
MS Screen 1 decoder
13 years ago