diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-22 00:04:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-28 01:56:32 +0200 |
commit | 3f11eac75741888c7b2b6f93c458766f2613bab5 (patch) | |
tree | b20563a7c223c5f6b4263ab68a0f2e35d1ed6bbc /libavcodec/rawenc.c | |
parent | f09fd1c6c70505916a3d1b21530b3f71d8118688 (diff) | |
download | ffmpeg-3f11eac75741888c7b2b6f93c458766f2613bab5.tar.gz |
avcodec/encode: Set AV_PKT_FLAG_KEY based upon AV_CODEC_PROP_INTRA_ONLY
Currently, the AV_PKT_FLAG_KEY is automatically set for audio encoders;
yet this is wrong, as both MLP and TrueHD have non-keyframes. So set it
based upon AV_CODEC_PROP_INTRA_ONLY (from the corresponding
AVCodecDescriptor) instead. This also sets it for some video codecs,
which is intended.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rawenc.c')
0 files changed, 0 insertions, 0 deletions