[FFmpeg-devel] [PATCH v5 1/2] libavcodec/jpeg2000dec.c: Add functions and modify structs for PPT marker support

Michael Niedermayer michael at niedermayer.cc
Sat Mar 28 16:38:03 EET 2020


On Sat, Mar 28, 2020 at 06:54:58PM +0530, gautamramk at gmail.com wrote:
> From: Gautam Ramakrishnan <gautamramk at gmail.com>
> 
> This patch adds support for the PPT marker. It breaks down the
> jpeg2000_decode_packet() function to decode headers and data
> separately.
> ---
>  libavcodec/jpeg2000dec.c | 200 +++++++++++++++++++++++++++++++++------
>  1 file changed, 170 insertions(+), 30 deletions(-)

this patch causes an assertion failure:

Thread 26 "read_thread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff80ff9700 (LWP 29700)]
__GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fffefafc801 in __GI_abort () at abort.c:79
#2  0x0000555555d06ffb in get_ppt (s=0x7fff78051640, n=47) at libavcodec/jpeg2000dec.c:868
#3  0x0000555555d0cf04 in jpeg2000_read_main_headers (s=0x7fff78051640) at libavcodec/jpeg2000dec.c:2133
#4  0x0000555555d0dcd5 in jpeg2000_decode_frame (avctx=0x7fff78050dc0, data=0x7fff78051280, got_frame=0x7fff780070d0, avpkt=0x7fff78007070) at libavcodec/jpeg2000dec.c:2372
#5  0x0000555555e44803 in frame_worker_thread (arg=0x7fff78006f70) at libavcodec/pthread_frame.c:201
#6  0x00007fffefeb46db in start_thread (arg=0x7fff80ff9700) at pthread_create.c:463
#7  0x00007fffefbdd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Elect your leaders based on what they did after the last election, not
based on what they say before an election.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200328/8466cbc1/attachment.sig>


More information about the ffmpeg-devel mailing list