History

Handle JPEG2000 frames stored in the Quicktime container. Fixes issue 1525.

Originally committed as revision 20500 to svn://svn.ffmpeg.org/ffmpeg/trunk

Jai Menon committed 17 years ago

Commit 09bad7e1 parent b70b1581 file · +4 −0Browse files

Unified · Split

libavcodec/libopenjpeg.c+4−0
@@ -80,6 +80,10 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx, · 79 unmodified lines
80 (AV_RB32(buf + 8) == JP2_SIG_VALUE)) {80 (AV_RB32(buf + 8) == JP2_SIG_VALUE)) {
81 dec = opj_create_decompress(CODEC_JP2);81 dec = opj_create_decompress(CODEC_JP2);
82 } else {82 } else {
83 // If the AVPacket contains a jp2c box, then skip to
84 // the starting byte of the codestream.
85 if (AV_RB32(buf + 4) == AV_RB32("jp2c"))
86 buf += 8;
83 dec = opj_create_decompress(CODEC_J2K);87 dec = opj_create_decompress(CODEC_J2K);
84 }88 }
85 89

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t