[FFmpeg-cvslog] Do not try to encode DVCPRO HD, it produces broken files.
Carl Eugen Hoyos
git at videolan.org
Mon Jun 4 20:42:22 CEST 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Jun 4 20:42:00 2012 +0200| [6b87f0707d2e2dd2136ed71e479c1aed25337b05] | committer: Carl Eugen Hoyos
Do not try to encode DVCPRO HD, it produces broken files.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b87f0707d2e2dd2136ed71e479c1aed25337b05
---
libavcodec/dv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index cd2cd4b..4ea3099 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -335,6 +335,10 @@ static av_cold int dvvideo_init_encoder(AVCodecContext *avctx)
ff_dv_print_profiles(avctx, AV_LOG_ERROR);
return AVERROR(EINVAL);
}
+ if (avctx->height > 576) {
+ av_log(avctx, AV_LOG_ERROR, "DVCPRO HD encoding is not supported.\n");
+ return AVERROR_PATCHWELCOME;
+ }
dv_vlc_map_tableinit();
More information about the ffmpeg-cvslog
mailing list