From 228adaab8d6bfb6e0b041db427e1eff6bd48f335 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 10 Oct 2010 21:04:38 +0000 Subject: Make sure version is not decreased for 16bit per sample colorspaces in ffv1. Originally committed as revision 25437 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ffv1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index b3f4ebcd19..a440eb4709 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -713,7 +713,7 @@ static av_cold int encode_init(AVCodecContext *avctx) av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n"); return -1; } - s->version= 1; + s->version= FFMAX(s->version, 1); case PIX_FMT_YUV444P: case PIX_FMT_YUV422P: case PIX_FMT_YUV420P: -- cgit v1.2.3