summaryrefslogtreecommitdiff
path: root/libavcodec/vc1_pred.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/vc1_pred: Fix invalid shifts in scaleforopp()Michael Niedermayer2019-09-281-2/+2
| | | | | | | | Fixes: left shift of negative value -2 Fixes: 16964/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5757853565976576 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vc1_pred: Fix refdist in scaleforopp()Michael Niedermayer2019-09-061-1/+2
| | | | | | | | Fixes: out of array access Fixes: 16601/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5656105392275456 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vc1_pred: Fix invalid shift in scaleforsame()Michael Niedermayer2019-07-311-1/+1
| | | | | | | | Fixes: left shift of negative value -1 Fixes: 15531/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5759556258365440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vc1: fix B predictor validity for 4-MV MBsJerome Borsboom2019-01-141-0/+2
| | | | | | | The B predictor for 4-MV MBs in interlace field pictures is not used for blocks 0 and 2 when the picture is 1 MB wide. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* avcodec/vc1: fix decoding of old WMV3 formatJerome Borsboom2019-01-121-1/+4
| | | | | | | | | | The position of the second MV predicitor candidate is slightly different for the old WMV3 format indicated by RES_RTM_FLAG. This patch fixes decoding of niceday.wmv on the samples server. Fixes: #6641 Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* avcodec/vc1: shuffle calculation of MV predictor candidatesJerome Borsboom2019-01-121-6/+7
| | | | | | | The B predictor for 4-MV macroblocks is only out of bounds when the A predictor is also out of bounds. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* avcodec/vc1: correct forgotten v->blocks_offJerome Borsboom2018-04-251-1/+1
| | | | | | correct forgotten v->blocks_off Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* avcodec/vc1_pred: set ref_field_type earlierJerome Borsboom2018-04-211-4/+4
| | | | | | | | | scaleforsame_y references ref_field_type. Therefore, it needs to be set before scaleforsame is called. Fixes #2557. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-211-1/+1
|\ | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-1/+1
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * vc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()Vittorio Giovara2015-04-191-5/+3
| | | | | | | | Fix a rather lengthy initialization warning from clang.
* | avcodec/vc1_pred: Fix undefined shiftsMichael Niedermayer2015-03-171-7/+9
| | | | | | | | | | | | Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vc1_pred: Fix undefined shift in ff_vc1_pred_mv()Michael Niedermayer2015-03-111-2/+4
| | | | | | | | | | | | Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vc1_pred: few branchless optimizationszhaoxiu.zeng2015-02-141-45/+23
| | | | | | | | | | | | This is also simpler Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'bc75b64cff37d58f3944e2da3da45c37f35f019a'Michael Niedermayer2014-11-251-5/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit 'bc75b64cff37d58f3944e2da3da45c37f35f019a': vc1pred: remove logically dead code Conflicts: libavcodec/vc1_pred.c See: fca435fee167da981f024e35d9fef4e6179b8061 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vc1pred: remove logically dead codeVittorio Giovara2014-11-251-6/+2
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1245699 / CID 1245700
* | Merge commit '04d14c9b68b03e8dbc6e3003c1ee06892dd32576'Michael Niedermayer2014-10-081-28/+30
|/ | | | | | | | | | | * commit '04d14c9b68b03e8dbc6e3003c1ee06892dd32576': vc1: Split the decoder in components Conflicts: libavcodec/Makefile libavcodec/vc1dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* vc1: Split the decoder in componentsLuca Barbato2014-10-081-0/+959
Speed up the overall compilation time.