[FFmpeg-devel] [PATCH v12 10/14] lavc/tiff: Support decoding of DNGs with single-component JPEGs

Michael Niedermayer michael at niedermayer.cc
Sun Aug 11 13:21:08 EEST 2019


On Sun, Aug 11, 2019 at 01:29:44AM +0200, Michael Niedermayer wrote:
> On Sun, Aug 11, 2019 at 12:57:17AM +0300, Nick Renieris wrote:
> > > after this commit the code dies when used with ffplay with floating point
> > > exceptions
> > 
> > I tried this on Ubuntu and I can't repro, it works fine.
> > Maybe something I changed locally fixed it, please re-test on the new
> > revision I'll send in a bit.
> 
> yes, it behaved a bit odd, ill retest with the new patches tomorrow (need to sleep)
> some things i noticed in the previous ones though
> it disappeared with some commits in the previous set too
> it doesnt happen with ffmpeg
> and i have this half useless backtrace:
> #0  0x00000000004752cc in dng_decode.isra ()
> #1  0x0000000000b73b67 in decode_frame ()
> #2  0x00000000008668d7 in decode_receive_frame_internal ()
> #3  0x0000000000867488 in avcodec_send_packet ()
> #4  0x00000000007c002d in try_decode_frame ()
> #5  0x00000000007c8ad8 in avformat_find_stream_info ()
> #6  0x00000000004c2b09 in read_thread ()
> 
> ill provide better information tomorrow in case it still happens
> with the latest set 

also occurs with the latest patchset (minus the last 3 patches)

heres a proper backtrace:

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fffdb6a5700 (LWP 19427)]
0x0000000000c4bad1 in dng_decode_tiles (avctx=0x7fffcc002540, frame=0x7fffcc003200) at libavcodec/tiff.c:947
947	    has_width_leftover = (s->width % s->tile_width != 0);
(gdb) bt
Python Exception <type 'exceptions.ImportError'> No module named gdb.frames: 
#0  0x0000000000c4bad1 in dng_decode_tiles (avctx=0x7fffcc002540, frame=0x7fffcc003200) at libavcodec/tiff.c:947
#1  0x0000000000c4bd95 in dng_decode (avctx=0x7fffcc002540, frame=0x7fffcc003200, avpkt=0x7fffcc003540) at libavcodec/tiff.c:1011
#2  0x0000000000c4fcc4 in decode_frame (avctx=0x7fffcc002540, data=0x7fffcc003200, got_frame=0x7fffdb6a46e8, avpkt=0x7fffcc003540) at libavcodec/tiff.c:1893
#3  0x00000000009005fa in decode_simple_internal (avctx=0x7fffcc002540, frame=0x7fffcc003200) at libavcodec/decode.c:433
#4  0x0000000000901281 in decode_simple_receive_frame (avctx=0x7fffcc002540, frame=0x7fffcc003200) at libavcodec/decode.c:629
#5  0x000000000090134c in decode_receive_frame_internal (avctx=0x7fffcc002540, frame=0x7fffcc003200) at libavcodec/decode.c:647
#6  0x00000000009015a7 in avcodec_send_packet (avctx=0x7fffcc002540, avpkt=0x7fffdb6a4890) at libavcodec/decode.c:705
#7  0x000000000083415b in try_decode_frame (s=0x7fffcc000940, st=0x7fffcc001c80, avpkt=0x7fffdb6a4a40, options=0x7fffcc001380) at libavformat/utils.c:3080
#8  0x000000000083752c in avformat_find_stream_info (ic=0x7fffcc000940, options=0x7fffcc001380) at libavformat/utils.c:3903
#9  0x0000000000422573 in read_thread (arg=0x7fffdb6a6040) at fftools/ffplay.c:2805
#10 0x00007ffff5f1f2ed in SDL_RunThread (data=0x2996dd0) at SDL2-2.0.4/src/thread/SDL_thread.c:282
#11 0x00007ffff5f7d1a9 in RunThread (data=<optimized out>) at SDL2-2.0.4/src/thread/pthread/SDL_systhread.c:75
#12 0x00007ffff0249184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#13 0x00007fffeff7603d in clone () from /lib/x86_64-linux-gnu/libc.so.6


[...]


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190811/65a70ef9/attachment.sig>


More information about the ffmpeg-devel mailing list