aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffyuvenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-28 00:27:57 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-28 00:27:57 +0100
commit2a9c50798b798057f82f55bc7564356f66e64db5 (patch)
tree7195515c5163ca54bf4771e7040b9cbd8d8e20ba /libavcodec/huffyuvenc.c
parentc94ed2a729649f614dc433032b3b3ca189057644 (diff)
downloadffmpeg-2a9c50798b798057f82f55bc7564356f66e64db5.tar.gz
avcodec/huffyuv: dont depend on bitstream_bpp having a specific value for version>2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvenc.c')
-rw-r--r--libavcodec/huffyuvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index fd7aa384d6..3cb7293dc1 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -349,7 +349,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
return AVERROR(EINVAL);
}
- if (s->bitstream_bpp >= 24 && s->predictor == MEDIAN) {
+ if (s->bitstream_bpp >= 24 && s->predictor == MEDIAN && s->version <= 2) {
av_log(avctx, AV_LOG_ERROR,
"Error: RGB is incompatible with median predictor\n");
return AVERROR(EINVAL);