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
8080 (AV_RB32(buf + 8) == JP2_SIG_VALUE)) {
8181 dec = opj_create_decompress(CODEC_JP2);
8282 } 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;
8387 dec = opj_create_decompress(CODEC_J2K);
8488 }
8589

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