diff options
author | Yuki Tsuchiya <Yuki.Tsuchiya@sony.com> | 2019-12-12 23:02:01 +0900 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-12-12 11:38:47 -0300 |
commit | 610473b9679bfd3aff56c6889927447da860beb1 (patch) | |
tree | 0e8bae8f9877856ed2fe96ebdadb88996b3d7aca /libavformat/utils.c | |
parent | aedffc0b220bd47d2a4f5bd3ca751e4e51c500c7 (diff) | |
download | ffmpeg-610473b9679bfd3aff56c6889927447da860beb1.tar.gz |
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: Yuki Tsuchiya <Yuki.Tsuchiya@sony.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 4d18880acb..92c6f6f289 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; } |