mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
Merge commit '7c57a582a03fb473091a88737ab92b9f2a5bb87a'
* commit '7c57a582a03fb473091a88737ab92b9f2a5bb87a': jpeg2000dec: don't use deprecated PIX_FMT values Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
75835abe91
@ -1067,7 +1067,7 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
|
|||||||
if (tile->codsty[0].mct)
|
if (tile->codsty[0].mct)
|
||||||
mct_decode(s, tile);
|
mct_decode(s, tile);
|
||||||
|
|
||||||
if (s->avctx->pix_fmt == PIX_FMT_BGRA) // RGBA -> BGRA
|
if (s->avctx->pix_fmt == AV_PIX_FMT_BGRA) // RGBA -> BGRA
|
||||||
FFSWAP(float *, tile->comp[0].data, tile->comp[2].data);
|
FFSWAP(float *, tile->comp[0].data, tile->comp[2].data);
|
||||||
|
|
||||||
if (s->precision <= 8) {
|
if (s->precision <= 8) {
|
||||||
@ -1351,7 +1351,7 @@ AVCodec ff_jpeg2000_decoder = {
|
|||||||
.init_static_data = jpeg2000_init_static_data,
|
.init_static_data = jpeg2000_init_static_data,
|
||||||
.decode = jpeg2000_decode_frame,
|
.decode = jpeg2000_decode_frame,
|
||||||
.priv_class = &class,
|
.priv_class = &class,
|
||||||
.pix_fmts = (enum PixelFormat[]) { AV_PIX_FMT_XYZ12,
|
.pix_fmts = (enum AVPixelFormat[]) { AV_PIX_FMT_XYZ12,
|
||||||
AV_PIX_FMT_GRAY8,
|
AV_PIX_FMT_GRAY8,
|
||||||
-1 },
|
-1 },
|
||||||
.profiles = NULL_IF_CONFIG_SMALL(profiles)
|
.profiles = NULL_IF_CONFIG_SMALL(profiles)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user