Commit 610473b9 authored by Yuki Tsuchiya's avatar Yuki Tsuchiya Committed by James Almer

lavc/codec_desc: introduce AV_CODEC_PROP_INTRA_ONLY flag to audio codec

Introduce AV_CODEC_PROP_INTRA_ONLY flag to audio codec as well as video codec to support non intra-only audio codec.
Signed-off-by: 's avatarYuki Tsuchiya <Yuki.Tsuchiya@sony.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent aedffc0b
This diff is collapsed.
......@@ -1021,7 +1021,8 @@ static int is_intra_only(enum AVCodecID id)
const AVCodecDescriptor *d = avcodec_descriptor_get(id);
if (!d)
return 0;
if (d->type == AVMEDIA_TYPE_VIDEO && !(d->props & AV_CODEC_PROP_INTRA_ONLY))
if ((d->type == AVMEDIA_TYPE_VIDEO || d->type == AVMEDIA_TYPE_AUDIO) &&
!(d->props & AV_CODEC_PROP_INTRA_ONLY))
return 0;
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment