[FFmpeg-devel] [PATCH] vp9: reset contextual caches on frame size change with mt enabled.

Clément Bœsch u at pkh.me
Tue Jan 7 10:12:41 CET 2014

On Sun, Jan 05, 2014 at 02:56:34PM -0500, Ronald S. Bultje wrote:
> Fixes crash/valgrind errors in trac ticket 3188.

That sample seems to trigger another issue in clipping:

(gdb) r
Starting program: /home/ux/src/ffmpeg/./ffmpeg_g -i /home/ux/samples/vp9/fuzzed1.ivf -f null -
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
ffmpeg version N-59651-gb051746 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan  7 2014 10:02:45 with gcc 4.8.2 (GCC) 20131219 (prerelease)
  configuration: --enable-nonfree --enable-gpl --enable-libx264 --enable-libmp3lame --enable-x11grab --enable-libvorbis --samples=/home/ux/fate-samples --enable-libvpx --cpu=native --enable-libfaac --cc='ccache cc' --assert-level=2
  libavutil      52. 62.100 / 52. 62.100
  libavcodec     55. 47.100 / 55. 47.100
  libavformat    55. 22.102 / 55. 22.102
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  0.103 /  4.  0.103
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, ivf, from '/home/ux/samples/vp9/fuzzed1.ivf':
  Duration: 00:08:42.22, start: 342228469.800797, bitrate: 31 kb/s
    Stream #0:0: Video: vp9 (VP90 / 0x30395056), yuv420p, 320x180, 26.42 tbr, 1004 tbn, 1004 tbc
[New Thread 0x7ffff3a98700 (LWP 4903)]
[New Thread 0x7ffff3297700 (LWP 4904)]
[New Thread 0x7ffff2a96700 (LWP 4905)]
[New Thread 0x7ffff2295700 (LWP 4906)]
[New Thread 0x7ffff1a94700 (LWP 4907)]
[New Thread 0x7ffff1293700 (LWP 4908)]
[New Thread 0x7ffff0a92700 (LWP 4909)]
[New Thread 0x7ffff0291700 (LWP 4910)]
[New Thread 0x7fffefa90700 (LWP 4911)]
[New Thread 0x7fffef28f700 (LWP 4912)]
Output #0, null, to 'pipe:':
    encoder         : Lavf55.22.102
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x180, q=2-31, 200 kb/s, 90k tbn, 26.42 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (vp9 -> rawvideo)
Press [q] to stop, [?] for help
DTS -17592186044376, next:996 st:0 invalid dropping
PTS -17592186044376, next:996 invalid dropping st:0
DTS -17592186044336, next:1992 st:0 invalid dropping
PTS -17592186044336, next:1992 invalid dropping st:0
DTS -17592186044296, next:2988 st:0 invalid dropping
PTS -17592186044296, next:2988 invalid dropping st:0
DTS -17592186044256, next:3984 st:0 invalid dropping
PTS -17592186044256, next:3984 invalid dropping st:0

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffefa90700 (LWP 4911)]
0x00007ffff4924319 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff4924319 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff4925718 in abort () from /usr/lib/libc.so.6
#2  0x00000000009d40e1 in av_clip_c (amax=<optimized out>, amin=<optimized out>, a=<optimized out>)
    at ./libavutil/common.h:108
#3  clamp_mv (s=<optimized out>, s=<optimized out>, s=<optimized out>, s=<optimized out>, 
    src=<optimized out>, dst=<optimized out>) at libavcodec/vp9.c:909
#4  find_ref_mvs (s=s at entry=0x1876180, pmv=pmv at entry=0x7fffd8001450, ref=<optimized out>, 
    z=z at entry=0, idx=idx at entry=0, sb=sb at entry=-1) at libavcodec/vp9.c:1007
#5  0x00000000009d4882 in fill_mv (s=s at entry=0x1876180, mv=mv at entry=0x7fffd8001450, mode=10, 
    sb=sb at entry=-1) at libavcodec/vp9.c:1168
#6  0x00000000009deb69 in decode_mode (ctx=0x1875d40) at libavcodec/vp9.c:1793
#7  decode_b (ctx=ctx at entry=0x1875d40, row=row at entry=525, col=col at entry=34, 
    lflvl=lflvl at entry=0x7fffd8001070, yoff=yoff at entry=1478672, uvoff=uvoff at entry=369736, 
    bl=BL_8X8, bp=PARTITION_NONE) at libavcodec/vp9.c:2718
#8  0x00000000009e0ad3 in decode_sb (ctx=0x1875d40, row=525, col=34, lflvl=0x7fffd8001070, 
    yoff=1478672, uvoff=369736, bl=BL_8X8) at libavcodec/vp9.c:2867
#9  0x00000000009e0998 in decode_sb (ctx=0x1875d40, row=<optimized out>, col=34, 
    lflvl=0x7fffd8001070, yoff=1478672, uvoff=369736, bl=BL_16X16) at libavcodec/vp9.c:2887
#10 0x00000000009e0947 in decode_sb (ctx=0x1875d40, row=524, col=32, lflvl=0x7fffd8001070, 
    yoff=1475840, uvoff=369024, bl=BL_32X32) at libavcodec/vp9.c:2883
#11 0x00000000009e6ceb in decode_sb (bl=BL_64X64, uvoff=369024, yoff=1475840, 
    lflvl=0x7fffd8001070, col=32, row=520, ctx=0x1875d40) at libavcodec/vp9.c:2887
#12 vp9_decode_frame (ctx=<optimized out>, frame=<optimized out>, got_frame=<optimized out>, 
    pkt=<optimized out>) at libavcodec/vp9.c:3642
#13 0x00000000008c6edd in frame_worker_thread (arg=0x1792b28) at libavcodec/pthread_frame.c:153
#14 0x00007ffff66aa0a2 in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007ffff49d43dd in clone () from /usr/lib/libc.so.6


Note the --assert-level=2

Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140107/8d10c6a7/attachment.asc>

More information about the ffmpeg-devel mailing list