Make sure version is not decreased for 16bit per sample colorspaces in ffv1.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Oct 2010 21:04:38 +0000 (21:04 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Oct 2010 21:04:38 +0000 (21:04 +0000)
Originally committed as revision 25437 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ffv1.c

index b3f4ebc..a440eb4 100644 (file)
@@ -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: