mirror of https://git.ffmpeg.org/ffmpeg.git
mjpegdec: parse app-colr
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
531f016944
commit
7afa68d37d
|
@ -1462,6 +1462,13 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
|
||||||
len -= 9;
|
len -= 9;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if (id == AV_RL32("colr") && len > 0) {
|
||||||
|
s->colr = get_bits(&s->gb, 8);
|
||||||
|
if (s->avctx->debug & FF_DEBUG_PICT_INFO)
|
||||||
|
av_log(s->avctx, AV_LOG_INFO, "COLR %d\n", s->colr);
|
||||||
|
len --;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/* Apple MJPEG-A */
|
/* Apple MJPEG-A */
|
||||||
if ((s->start_code == APP1) && (len > (0x28 - 8))) {
|
if ((s->start_code == APP1) && (len > (0x28 - 8))) {
|
||||||
|
|
|
@ -65,6 +65,7 @@ typedef struct MJpegDecodeContext {
|
||||||
int rct; /* standard rct */
|
int rct; /* standard rct */
|
||||||
int pegasus_rct; /* pegasus reversible colorspace transform */
|
int pegasus_rct; /* pegasus reversible colorspace transform */
|
||||||
int bits; /* bits per component */
|
int bits; /* bits per component */
|
||||||
|
int colr;
|
||||||
|
|
||||||
int maxval;
|
int maxval;
|
||||||
int near; ///< near lossless bound (si 0 for lossless)
|
int near; ///< near lossless bound (si 0 for lossless)
|
||||||
|
|
Loading…
Reference in New Issue