Do not try to encode DVCPRO HD, it produces broken files.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 4 Jun 2012 18:42:00 +0000 (20:42 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 4 Jun 2012 18:42:00 +0000 (20:42 +0200)
libavcodec/dv.c

index cd2cd4b..4ea3099 100644 (file)
@@ -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();