mjpegdec: parse app-xfrm
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7afa68d37d
commit
96747e6cbe
@ -1469,6 +1469,13 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
|
|||||||
len --;
|
len --;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if (id == AV_RL32("xfrm") && len > 0) {
|
||||||
|
s->xfrm = get_bits(&s->gb, 8);
|
||||||
|
if (s->avctx->debug & FF_DEBUG_PICT_INFO)
|
||||||
|
av_log(s->avctx, AV_LOG_INFO, "XFRM %d\n", s->xfrm);
|
||||||
|
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))) {
|
||||||
|
@ -66,6 +66,7 @@ typedef struct MJpegDecodeContext {
|
|||||||
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 colr;
|
||||||
|
int xfrm;
|
||||||
|
|
||||||
int maxval;
|
int maxval;
|
||||||
int near; ///< near lossless bound (si 0 for lossless)
|
int near; ///< near lossless bound (si 0 for lossless)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user