[FFmpeg-cvslog] avcodec/dnxhdenc: interlaced is not supported in DNxHR
Paul B Mahol
git at videolan.org
Thu Sep 6 14:48:32 EEST 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 6 13:43:20 2018 +0200| [a77c2df5cc29293729d0c08e9641c1a56500c9f5] | committer: Paul B Mahol
avcodec/dnxhdenc: interlaced is not supported in DNxHR
Fixes #7263.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a77c2df5cc29293729d0c08e9641c1a56500c9f5
---
libavcodec/dnxhdenc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 5135eedfd6..9325f38baf 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -473,6 +473,12 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
ctx->m.mb_height /= 2;
}
+ if (ctx->interlaced && ctx->profile != FF_PROFILE_DNXHD) {
+ av_log(avctx, AV_LOG_ERROR,
+ "Interlaced encoding is not supported for DNxHR profiles.\n");
+ return AVERROR(EINVAL);
+ }
+
ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width;
if (ctx->cid_table->frame_size == DNXHD_VARIABLE) {
More information about the ffmpeg-cvslog
mailing list