Commit 45db9218 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/jpeg2000dec: Add placeholder for PLT parsing

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b6ee1912
......@@ -673,6 +673,22 @@ static uint8_t get_tlm(Jpeg2000DecoderContext *s, int n)
return 0;
}
static uint8_t get_plt(Jpeg2000DecoderContext *s, int n)
{
int i;
av_log(s->avctx, AV_LOG_ERROR,
"PLT marker at pos 0x%X\n", bytestream2_tell(&s->g) - 4);
/*Zplt =*/ bytestream2_get_byte(&s->g);
for (i = 0; i < n - 3; i++) {
bytestream2_get_byte(&s->g);
}
return 0;
}
static int init_tile(Jpeg2000DecoderContext *s, int tileno)
{
int compno;
......@@ -1469,6 +1485,10 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
// Tile-part lengths
ret = get_tlm(s, len);
break;
case JPEG2000_PLT:
// Packet length, tile-part header
ret = get_plt(s, len);
break;
default:
av_log(s->avctx, AV_LOG_ERROR,
"unsupported marker 0x%.4"PRIX16" at pos 0x%X\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment