Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2014/01/28 08:27:57... | ... |
@@ -349,7 +349,7 @@ static av_cold int encode_init(AVCodecContext *avctx) |
349 | 349 |
return AVERROR(EINVAL); |
350 | 350 |
} |
351 | 351 |
|
352 |
- if (s->bitstream_bpp >= 24 && s->predictor == MEDIAN) { |
|
352 |
+ if (s->bitstream_bpp >= 24 && s->predictor == MEDIAN && s->version <= 2) { |
|
353 | 353 |
av_log(avctx, AV_LOG_ERROR, |
354 | 354 |
"Error: RGB is incompatible with median predictor\n"); |
355 | 355 |
return AVERROR(EINVAL); |