mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 03:13:08 +08:00
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
6209669de4
commit
975a1447f7
@@ -353,9 +353,9 @@ static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame,
|
||||
coded_frame->key_frame = !!(cx_frame->flags & VPX_FRAME_IS_KEY);
|
||||
|
||||
if (coded_frame->key_frame)
|
||||
coded_frame->pict_type = FF_I_TYPE;
|
||||
coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
else
|
||||
coded_frame->pict_type = FF_P_TYPE;
|
||||
coded_frame->pict_type = AV_PICTURE_TYPE_P;
|
||||
} else {
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Compressed frame larger than storage provided! (%zu/%d)\n",
|
||||
|
||||
Reference in New Issue
Block a user