Opened 12 years ago

Closed 12 years ago

#1372 closed defect (fixed)

ffv1 crash

Reported by: ami_stuff Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: ffv1
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://samples.mplayerhq.hu/V-codecs/CVC1/Sheep.avi

(gdb) r -vcodec ffv1 -i Sheep.avi -f null -
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: d:\mingw\msys\1.0\ffmpeg-head-ab7d6cb\ffmpeg_g.exe -vcodec ffv
1 -i Sheep.avi -f null -
[New Thread 2392.0xc28]
ffmpeg version 0.10.2.git-ab7d6cb Copyright (c) 2000-2012 the FFmpeg developers
  built on May 27 2012 11:57:57 with gcc 4.6.1
  configuration: --disable-ffprobe --enable-gpl
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[ffv1 @ 03bcc7c0] read_quant_table error
Input #0, avi, from 'Sheep.avi':
  Duration: 00:03:14.00, start: 0.000000, bitrate: 173 kb/s
    Stream #0:0: Video: ffv1 (CVC1 / 0x31435643), yuva444p, 320x240, 15 tbr, 15
tbn, 15 tbc
[buffer @ 03bd1860] w:320 h:240 pixfmt:yuva444p tb:1/15 sar:0/1 sws_param:flags=
2
[buffersink @ 03bd2240] No opaque field provided
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.6.101
    Stream #0:0: Video: rawvideo (Y4[0][8] / 0x8003459), yuva444p, 320x240, q=2-
31, 200 kb/s, 90k tbn, 15 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (ffv1 -> rawvideo)
Press [q] to stop, [?] for help
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0
[ffv1 @ 03bcc7c0] read_quant_table error
Error while decoding stream #0:0

Program received signal SIGSEGV, Segmentation fault.
read_quant_table (c=0x4158ee8, quant_table=0x414c88c, scale=<optimized out>)
    at libavcodec/ffv1.c:1659
1659                quant_table[i] = scale*v;
(gdb) bt
#0  read_quant_table (c=0x4158ee8, quant_table=0x414c88c,
    scale=<optimized out>) at libavcodec/ffv1.c:1659
#1  0x0067401b in read_quant_tables (quant_table=0x414c68c, c=0x4158ee8)
    at libavcodec/ffv1.c:1679
#2  read_header (f=0x4148a20) at libavcodec/ffv1.c:1858
#3  decode_frame (avctx=0x3bcc7c0, data=0x3bd2760, data_size=0x22e8bc,
    avpkt=0x22e5b8) at libavcodec/ffv1.c:1969
#4  0x00542637 in avcodec_decode_video2 (avctx=0x3bcc7c0, picture=0x3bd2760,
    got_picture_ptr=0x22e8bc, avpkt=0x22e7f0) at libavcodec/utils.c:1464
#5  0x0040c507 in decode_video (got_output=<optimized out>,
    pkt=<optimized out>, ist=<optimized out>) at ffmpeg.c:2645
#6  output_packet (ist=0x3bd1940, pkt=0x22fbb0) at ffmpeg.c:2816
#7  0x0040e723 in transcode () at ffmpeg.c:3662
#8  0x00b14ee2 in main (argc=8, argv=0x3bd0dd0) at ffmpeg.c:5926
(gdb)

Change History (3)

comment:1 by ami_stuff, 12 years ago

http://samples.mplayerhq.hu/V-codecs/WMV9/XIntra8/vc1.cmplx.wmv

(gdb) r -vcodec ffv1 -i vc1.cmplx.wmv -f null -
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: d:\mingw\msys\1.0\ffmpeg-head-ab7d6cb\ffmpeg_g.exe -vcodec ffv
1 -i vc1.cmplx.wmv -f null -
[New Thread 2288.0x3e0]
ffmpeg version 0.10.2.git-ab7d6cb Copyright (c) 2000-2012 the FFmpeg developers
  built on May 27 2012 11:57:57 with gcc 4.6.1
  configuration: --disable-ffprobe --enable-gpl
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[ffv1 @ 03bccbc0] Cant decode non keyframe without valid keyframe
    Last message repeated 1 times
Program received signal SIGSEGV, Segmentation fault.
av_freep (arg=0x1e24) at libavutil/mem.c:181
181         av_free(*ptr);
(gdb) bt
#0  av_freep (arg=0x1e24) at libavutil/mem.c:181
#1  0x00b2a328 in common_end (avctx=0x3bccbc0) at libavcodec/ffv1.c:1369
#2  0x00b1de56 in avcodec_close (avctx=0x3bccbc0) at libavcodec/utils.c:1657
#3  0x004776a1 in avformat_find_stream_info (ic=0x3bc2340, options=0x3bd1420)
    at libavformat/utils.c:2678
#4  0x0040ab87 in opt_input_file (o=0x22fdc8, opt=0x3bd0e85 "i",
    filename=<optimized out>) at ffmpeg.c:4327
#5  0x00413a7f in parse_option (optctx=0x22fdc8, opt=<optimized out>,
    arg=0x3bd0e87 "vc1.cmplx.wmv", options=0xb76bc0) at cmdutils.c:305
#6  0x00413ce2 in parse_options (optctx=0x22fdc8, argc=8,
    argv=<optimized out>, options=0xb76bc0,
    parse_arg_function=0x410748 <opt_output_file>) at cmdutils.c:338
#7  0x00b14e95 in main (argc=8, argv=0x3bd0dd0) at ffmpeg.c:5906
(gdb)

comment:2 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Keywords: ffv1 added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Please open one ticket for every bug, do not report multiple issues in one ticket.

comment:3 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: openclosed

both fixed
thanks

Note: See TracTickets for help on using tickets.