|
|
@ -730,7 +730,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
} |
|
|
|
} |
|
|
|
pred[1] += sign_extend(h[1].values[res], 8); |
|
|
|
pred[1] += sign_extend(h[1].values[res], 8); |
|
|
|
*samples8++ = av_clip_uint8(pred[1]); |
|
|
|
*samples8++ = pred[1]; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if(vlc[0].table) |
|
|
|
if(vlc[0].table) |
|
|
|
res = get_vlc2(&gb, vlc[0].table, SMKTREE_BITS, 3); |
|
|
|
res = get_vlc2(&gb, vlc[0].table, SMKTREE_BITS, 3); |
|
|
@ -741,7 +741,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
} |
|
|
|
} |
|
|
|
pred[0] += sign_extend(h[0].values[res], 8); |
|
|
|
pred[0] += sign_extend(h[0].values[res], 8); |
|
|
|
*samples8++ = av_clip_uint8(pred[0]); |
|
|
|
*samples8++ = pred[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|