Opened 13 years ago

Closed 13 years ago

#331 closed defect (fixed)

Endless loop when reading jpeg-ls sample

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

When reading one of the samples provided with the source of David A. Clunie's jpeg-ls implementation, ffmpeg loops endlessly.

(gdb) r -i CT2.noruns.jls
Starting program: ffmpeg_g -i CT2.noruns.jls
ffmpeg version N-31266-g3950376, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul  6 2011 10:20:08 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 3 /  2. 24. 3
  libswscale    2.  0. 0 /  2.  0. 0
^C
Program received signal SIGINT, Interrupt.
0x000000000065f133 in ls_get_code_regular (Q=<value optimized out>, state=0x1282a40, gb=0x1277cc8) at libavcodec/jpeglsdec.c:93
93          for(k = 0; (state->N[Q] << k) < state->A[Q]; k++);
#0  0x000000000065f133 in ls_get_code_regular (Q=<value optimized out>, state=0x1282a40, gb=0x1277cc8) at libavcodec/jpeglsdec.c:93
#1  ls_decode_line (Q=<value optimized out>, state=0x1282a40, gb=0x1277cc8) at libavcodec/jpeglsdec.c:239
#2  0x00000000006602ab in ff_jpegls_decode_picture (s=0x1277cc0, near=<value optimized out>, point_transform=<value optimized out>, ilv=<value optimized out>) at libavcodec/jpeglsdec.c:298
#3  0x0000000000675fba in ff_mjpeg_decode_sos (s=0x1277cc0, mb_bitmask=<value optimized out>, reference=<value optimized out>) at libavcodec/mjpegdec.c:1035
#4  ff_mjpeg_decode_frame (s=0x1277cc0, mb_bitmask=<value optimized out>, reference=<value optimized out>) at libavcodec/mjpegdec.c:1533
#5  0x000000000078e208 in avcodec_decode_video2 (avctx=0x1277800, picture=0x7fffffffd7c0, got_picture_ptr=0x7fffffffdaec, avpkt=0x127a340) at libavcodec/utils.c:747
#6  0x00000000004c1e3d in try_decode_frame (avpkt=<value optimized out>, st=<value optimized out>) at libavformat/utils.c:2136
#7  av_find_stream_info (avpkt=<value optimized out>, st=<value optimized out>) at libavformat/utils.c:2426
#8  0x000000000040cec9 in opt_input_file (opt=<value optimized out>, filename=0x7fffffffe277 "CT2.noruns.jls") at ffmpeg.c:3368
#9  0x0000000000411641 in parse_options (argc=3, argv=0x7fffffffddf8, options=0x94f360, parse_arg_function=0x40f4c0 <opt_output_file>) at cmdutils.c:283
#10 0x0000000000410896 in main (argc=3, argv=0x7fffffffddf8) at ffmpeg.c:4563

Attachments (1)

CT2.noruns.jls (123.6 KB ) - added by Carl Eugen Hoyos 13 years ago.

Download all attachments as: .zip

Change History (2)

by Carl Eugen Hoyos, 13 years ago

Attachment: CT2.noruns.jls added

comment:1 by Michael Niedermayer, 13 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed

Locally fixed

Note: See TracTickets for help on using tickets.