diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 166c223..e9b2aac 100644
|
a
|
b
|
int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
|
| 229 | 229 | av_log(s->avctx, AV_LOG_ERROR, "only 8 bits/component accepted\n"); |
| 230 | 230 | return -1; |
| 231 | 231 | } |
| | 232 | |
| | 233 | if (s->lossless && !s->ls && s->bits != 8 && s->bits != 16){ |
| | 234 | av_log(s->avctx, AV_LOG_ERROR, "only 8 or 16 bits/component accepted for ljpeg\n"); |
| | 235 | return -1; |
| | 236 | } |
| 232 | 237 | |
| 233 | 238 | if(s->lossless && s->avctx->lowres){ |
| 234 | 239 | av_log(s->avctx, AV_LOG_ERROR, "lowres is not possible with lossless jpeg\n"); |