X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fv410enc.c;h=bcd7c65bdc18f3efd1e1d739e1416a479f18f07c;hb=dde545c6970bca308b0b3f91dbb378d46f6808a4;hp=e6c837eef68d0f131b2c4f90766717d9936f86fe;hpb=3be1a4ba9a9d926674b33051d6539fe8d8a4106c;p=ffmpeg diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c index e6c837eef68..bcd7c65bdc1 100644 --- a/libavcodec/v410enc.c +++ b/libavcodec/v410enc.c @@ -57,7 +57,7 @@ static int v410_encode_frame(AVCodecContext *avctx, uint8_t *buf, avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; - avctx->coded_frame->pict_type = FF_I_TYPE; + avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; y = (uint16_t *)pic->data[0]; u = (uint16_t *)pic->data[1]; @@ -67,7 +67,7 @@ static int v410_encode_frame(AVCodecContext *avctx, uint8_t *buf, for (j = 0; j < avctx->width; j++) { val = u[j] << 2; val |= y[j] << 12; - val |= v[j] << 22; + val |= (uint32_t) v[j] << 22; AV_WL32(dst, val); dst += 4; output_size += 4;