mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
utvideo: mark output picture as keyframe.
Spotted by Антон.
This commit is contained in:
parent
cc965300cb
commit
72dadaa957
1 changed files with 2 additions and 0 deletions
|
|
@ -492,6 +492,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
|
|||
break;
|
||||
}
|
||||
|
||||
c->pic.key_frame = 1;
|
||||
c->pic.pict_type = AV_PICTURE_TYPE_I;
|
||||
*data_size = sizeof(AVFrame);
|
||||
*(AVFrame*)data = c->pic;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue