]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v410enc.c
lavc: replace rest of deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
[ffmpeg] / libavcodec / v410enc.c
index e6c837eef68d0f131b2c4f90766717d9936f86fe..bcd7c65bdc18f3efd1e1d739e1416a479f18f07c 100644 (file)
@@ -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;