You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/cdxl: also mark decoded frame as keyframe
This commit is contained in:
@@ -295,6 +295,7 @@ static int cdxl_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
|
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
p->pict_type = AV_PICTURE_TYPE_I;
|
p->pict_type = AV_PICTURE_TYPE_I;
|
||||||
|
p->key_frame = 1;
|
||||||
|
|
||||||
if (encoding) {
|
if (encoding) {
|
||||||
av_fast_padded_malloc(&c->new_video, &c->new_video_size,
|
av_fast_padded_malloc(&c->new_video, &c->new_video_size,
|
||||||
|
Reference in New Issue
Block a user