summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-06-04 20:42:00 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-06-04 20:42:00 +0200
commit6b87f0707d2e2dd2136ed71e479c1aed25337b05 (patch)
treeaed72c8d7bbc6eb91e19ebf299d8e54b93b4e56b /libavcodec/dv.c
parent0a3e15690fba3ee086b745a50c88cb05f1b5339f (diff)
Do not try to encode DVCPRO HD, it produces broken files.
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index cd2cd4ba8f..4ea3099cd9 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();