summaryrefslogtreecommitdiffstats
path: root/libavcodec/mss12.c
Commit message (Collapse)AuthorAgeFilesLines
* mss*: Change type of array stride parameters to ptrdiff_tDiego Biurrun2016-09-291-7/+8
| | | | ptrdiff_t is the correct type for array strides and similar.
* mss12: validate display dimensionsAnton Khirnov2016-08-181-0/+10
| | | | | | | | | | | | | 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
* avcodec: more correct printf specifiersDiego Biurrun2014-03-221-4/+6
|
* mss12: merge decode_pixel() and decode_top_left_pixel()Alberto Delmás2012-09-031-42/+21
| | | | | | No meaningful generated code differences using gcc -O3. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss12: reduce SliceContext size from 1067 to 164 KBAlberto Delmás2012-09-031-30/+24
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss12: move SliceContexts out of the common context into the codec contextsAlberto Delmás2012-09-031-31/+29
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* MSS1 and MSS2: set final pixel format after common stuff has been initialisedAlberto Delmás2012-08-311-4/+0
| | | | | | | 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>
* MSS2 decoderAlberto Delmás2012-08-311-130/+256
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mss1: move code that will be reused by MSS2 decoder into separate fileKostya Shishkov2012-08-271-0/+581
OpenPOWER on IntegriCloud