forked from FFmpeg/FFmpeg
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
This commit is contained in:
parent
4f22b3bbbf
commit
228adaab8d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue