forked from FFmpeg/FFmpeg
svq3: Fix ff_h264_check_intra_pred_mode() return code check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e0b45ca730
commit
019eb2c77b
1 changed files with 2 additions and 2 deletions
|
@ -649,8 +649,8 @@ static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type)
|
||||||
dir = i_mb_type_info[mb_type - 8].pred_mode;
|
dir = i_mb_type_info[mb_type - 8].pred_mode;
|
||||||
dir = (dir >> 1) ^ 3 * (dir & 1) ^ 1;
|
dir = (dir >> 1) ^ 3 * (dir & 1) ^ 1;
|
||||||
|
|
||||||
if ((h->intra16x16_pred_mode = ff_h264_check_intra_pred_mode(h, dir, 0)) == -1) {
|
if ((h->intra16x16_pred_mode = ff_h264_check_intra_pred_mode(h, dir, 0)) < 0) {
|
||||||
av_log(h->avctx, AV_LOG_ERROR, "check_intra_pred_mode = -1\n");
|
av_log(h->avctx, AV_LOG_ERROR, "check_intra_pred_mode < 0\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue