]> git.sesse.net Git - ffmpeg/commitdiff
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 b3f4ebcd197531b8b59bb262e5ad9fba5ddc1018..a440eb470946d589b4f86d9c04e4fe36f3d83632 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: