Commit 228adaab authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 4f22b3bb
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment