diff options
author | James Almer <jamrial@gmail.com> | 2020-02-02 18:44:41 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-02-22 23:19:07 -0300 |
commit | c6666894914ba8be1193ed81e9b6b737c68c29b6 (patch) | |
tree | 5ade4736c2bf0dd32eed59156a78a162c05522fa /libavcodec/utils.c | |
parent | 5dda6c173f8c8d169f934731e31d34c1fe5da75a (diff) |
avcodec: add an AVCodecContext field to signal types of packet, frame, and coded stream side data to export
Add an initial mvs flag to is, analog to the export_mvs flags2 one.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index dba2022478..c4dc136d3c 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -947,6 +947,9 @@ FF_ENABLE_DEPRECATION_WARNINGS && avctx->codec_descriptor->type == AVMEDIA_TYPE_VIDEO) av_log(avctx, AV_LOG_WARNING, "gray decoding requested but not enabled at configuration time\n"); + if (avctx->flags2 & AV_CODEC_FLAG2_EXPORT_MVS) { + avctx->export_side_data |= AV_CODEC_EXPORT_DATA_MVS; + } if ( avctx->codec->init && (!(avctx->active_thread_type&FF_THREAD_FRAME) || avci->frame_thread_encoder)) { |