]> git.sesse.net Git - ffmpeg/commitdiff
lavc: replace rest of deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
authorPaul B Mahol <onemda@gmail.com>
Mon, 2 Jan 2012 17:49:38 +0000 (17:49 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jan 2012 02:25:22 +0000 (03:25 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bintext.c
libavcodec/flashsv2enc.c
libavcodec/j2kdec.c
libavcodec/msvideo1enc.c
libavcodec/proresdec2.c
libavcodec/v410dec.c
libavcodec/v410enc.c
libavcodec/vble.c
libavcodec/y41pdec.c
libavcodec/y41penc.c

index 0b46dd444e5ce5fb5b1832440cba72dbf7721a17..91167ba150bce5f71e5e23d524f4819c9e5e190a 100644 (file)
@@ -139,7 +139,7 @@ static int decode_frame(AVCodecContext *avctx,
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return -1;
     }
-    s->frame.pict_type           = FF_I_TYPE;
+    s->frame.pict_type           = AV_PICTURE_TYPE_I;
     s->frame.palette_has_changed = 1;
     memcpy(s->frame.data[1], s->palette, 16 * 4);
 
index 9f7017e033f420ea21b490818b77b83a9a0f66f3..6466be7858d7f02c743fe29c55b6045c3da0e629 100644 (file)
@@ -870,12 +870,12 @@ static int flashsv2_encode_frame(AVCodecContext * avctx, uint8_t * buf,
 
     if (keyframe) {
         new_key_frame(s);
-        p->pict_type = FF_I_TYPE;
+        p->pict_type = AV_PICTURE_TYPE_I;
         p->key_frame = 1;
         s->last_key_frame = avctx->frame_number;
         av_log(avctx, AV_LOG_DEBUG, "Inserting key frame at frame %d\n", avctx->frame_number);
     } else {
-        p->pict_type = FF_P_TYPE;
+        p->pict_type = AV_PICTURE_TYPE_P;
         p->key_frame = 0;
     }
 
index 6989aa1cd73dd43d5329a0eac2c353a84ee632ad..2cbd7cc529aea902170de922087bb6fee82a9ba7 100644 (file)
@@ -274,7 +274,7 @@ static int get_siz(J2kDecoderContext *s)
     if ((ret = s->avctx->get_buffer(s->avctx, &s->picture)) < 0)
         return ret;
 
-    s->picture.pict_type = FF_I_TYPE;
+    s->picture.pict_type = AV_PICTURE_TYPE_I;
     s->picture.key_frame = 1;
 
     return 0;
index 401ac2a2ae89c0fe5d094e135d89cbd43dd0a075..971cce35e634c3d6a2ef4694c76e99e1818b4079 100644 (file)
@@ -243,7 +243,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void
         c->keyint = 0;
     else
         c->keyint++;
-    p->pict_type= keyframe ? FF_I_TYPE : FF_P_TYPE;
+    p->pict_type= keyframe ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P;
     p->key_frame= keyframe;
 
     return dst - buf;
index 18decae1166afd6124e39c0ca105022d13b451ac..fe4cfd09b862e781b49f4f2e0ae1930249b49424 100644 (file)
@@ -73,7 +73,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     ff_proresdsp_init(&ctx->prodsp, avctx);
 
     avctx->coded_frame = &ctx->frame;
-    ctx->frame.type = FF_I_TYPE;
+    ctx->frame.type = AV_PICTURE_TYPE_I;
     ctx->frame.key_frame = 1;
 
     ff_init_scantable_permutation(idct_permutation,
index f600b5d493e0f9053b45ea6196ad0d5355d4bb96..10d73057afe20ddb9e049f6b0e2d4338e45ba76e 100644 (file)
@@ -67,7 +67,7 @@ static int v410_decode_frame(AVCodecContext *avctx, void *data,
     }
 
     pic->key_frame = 1;
-    pic->pict_type = FF_I_TYPE;
+    pic->pict_type = AV_PICTURE_TYPE_I;
 
     y = (uint16_t *)pic->data[0];
     u = (uint16_t *)pic->data[1];
index e7d9c4e3845293166be70176453033a11fb8ea37..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];
index cee153c979a9271e6db79adb8d11db6e17ce50dc..57b3599ddb975688084b05c0fba331db62c7283e 100644 (file)
@@ -134,7 +134,7 @@ static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
 
     /* Set flags */
     pic->key_frame = 1;
-    pic->pict_type = FF_I_TYPE;
+    pic->pict_type = AV_PICTURE_TYPE_I;
 
     /* Version should always be 1 */
     version = AV_RL32(src);
index ea9bf9282a57e6557485d38e4d9c80736481b38a..e66546b0fa03752f2c6abc1a5f00755bb8b725f5 100644 (file)
@@ -64,7 +64,7 @@ static int y41p_decode_frame(AVCodecContext *avctx, void *data,
     }
 
     pic->key_frame = 1;
-    pic->pict_type = FF_I_TYPE;
+    pic->pict_type = AV_PICTURE_TYPE_I;
 
     for (i = avctx->height - 1; i >= 0 ; i--) {
         y = &pic->data[0][i * pic->linesize[0]];
index b8b4a2e43b798c318b722f3f497b08037b31a425..aa32403a45d45bd0122acab3d523911484368281 100644 (file)
@@ -54,7 +54,7 @@ static int y41p_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;
 
     for (i = avctx->height - 1; i >= 0; i--) {
         y = &pic->data[0][i * pic->linesize[0]];