mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-29 02:50:30 +08:00
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
This commit is contained in:
+2
-2
@@ -69,7 +69,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data,
|
||||
|
||||
/* Set frame parameters and palette, if necessary */
|
||||
if (!avctx->frame_number) {
|
||||
bfi->frame.pict_type = FF_I_TYPE;
|
||||
bfi->frame.pict_type = AV_PICTURE_TYPE_I;
|
||||
bfi->frame.key_frame = 1;
|
||||
/* Setting the palette */
|
||||
if(avctx->extradata_size>768) {
|
||||
@@ -89,7 +89,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data,
|
||||
memcpy(bfi->pal, bfi->frame.data[1], sizeof(bfi->pal));
|
||||
bfi->frame.palette_has_changed = 1;
|
||||
} else {
|
||||
bfi->frame.pict_type = FF_P_TYPE;
|
||||
bfi->frame.pict_type = AV_PICTURE_TYPE_P;
|
||||
bfi->frame.key_frame = 0;
|
||||
bfi->frame.palette_has_changed = 0;
|
||||
memcpy(bfi->frame.data[1], bfi->pal, sizeof(bfi->pal));
|
||||
|
||||
Reference in New Issue
Block a user