|
|
@ -161,7 +161,6 @@ static int aom_decode(AVCodecContext *avctx, void *data, int *got_frame, |
|
|
|
AVFrame *picture = data; |
|
|
|
AVFrame *picture = data; |
|
|
|
const void *iter = NULL; |
|
|
|
const void *iter = NULL; |
|
|
|
struct aom_image *img; |
|
|
|
struct aom_image *img; |
|
|
|
aom_codec_frame_flags_t av_unused flags; |
|
|
|
|
|
|
|
int ret; |
|
|
|
int ret; |
|
|
|
|
|
|
|
|
|
|
|
if (aom_codec_decode(&ctx->decoder, avpkt->data, avpkt->size, NULL) != |
|
|
|
if (aom_codec_decode(&ctx->decoder, avpkt->data, avpkt->size, NULL) != |
|
|
@ -200,6 +199,8 @@ static int aom_decode(AVCodecContext *avctx, void *data, int *got_frame, |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef AOM_CTRL_AOMD_GET_FRAME_FLAGS |
|
|
|
#ifdef AOM_CTRL_AOMD_GET_FRAME_FLAGS |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
aom_codec_frame_flags_t flags; |
|
|
|
ret = aom_codec_control(&ctx->decoder, AOMD_GET_FRAME_FLAGS, &flags); |
|
|
|
ret = aom_codec_control(&ctx->decoder, AOMD_GET_FRAME_FLAGS, &flags); |
|
|
|
if (ret == AOM_CODEC_OK) { |
|
|
|
if (ret == AOM_CODEC_OK) { |
|
|
|
picture->key_frame = !!(flags & AOM_FRAME_IS_KEY); |
|
|
|
picture->key_frame = !!(flags & AOM_FRAME_IS_KEY); |
|
|
@ -210,6 +211,7 @@ static int aom_decode(AVCodecContext *avctx, void *data, int *got_frame, |
|
|
|
else |
|
|
|
else |
|
|
|
picture->pict_type = AV_PICTURE_TYPE_P; |
|
|
|
picture->pict_type = AV_PICTURE_TYPE_P; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
av_reduce(&picture->sample_aspect_ratio.num, |
|
|
|
av_reduce(&picture->sample_aspect_ratio.num, |
|
|
|