mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Handle JPEG2000 frames stored in the Quicktime container.
Fixes issue 1525. Originally committed as revision 20500 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b70b158833
commit
09bad7e3ca
@ -80,6 +80,10 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
|
||||
(AV_RB32(buf + 8) == JP2_SIG_VALUE)) {
|
||||
dec = opj_create_decompress(CODEC_JP2);
|
||||
} else {
|
||||
// If the AVPacket contains a jp2c box, then skip to
|
||||
// the starting byte of the codestream.
|
||||
if (AV_RB32(buf + 4) == AV_RB32("jp2c"))
|
||||
buf += 8;
|
||||
dec = opj_create_decompress(CODEC_J2K);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user