|
|
@@ -584,7 +584,8 @@ unk_pixfmt: |
|
|
av_log(s->avctx, AV_LOG_DEBUG, "decode_sof0: error, len(%d) mismatch\n", len); |
|
|
av_log(s->avctx, AV_LOG_DEBUG, "decode_sof0: error, len(%d) mismatch\n", len); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (s->rgb && !s->lossless && !s->ls) { |
|
|
|
|
|
|
|
|
if ((s->rgb && !s->lossless && !s->ls) || |
|
|
|
|
|
(!s->rgb && s->ls && s->nb_components > 1)) { |
|
|
av_log(s->avctx, AV_LOG_ERROR, "Unsupported coding and pixel format combination\n"); |
|
|
av_log(s->avctx, AV_LOG_ERROR, "Unsupported coding and pixel format combination\n"); |
|
|
return AVERROR_PATCHWELCOME; |
|
|
return AVERROR_PATCHWELCOME; |
|
|
} |
|
|
} |
|
|
|