ffmpeg version N-85291-g15a23a8332 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20170306 configuration: --enable-gpl --enable-fontconfig --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libvpx --samples=/home/ux/fate-samples --assert-level=2 --enable-libass --enable-libpulse --enable-libxvid --enable-libzvbi --enable-frei0r --prefix=/tmp/ff --enable-openssl --enable-nonfree --disable-stripping --extra-cflags='-fsanitize=thread' --extra-ldflags='-fsanitize=thread' libavutil 55. 60.100 / 55. 60.100 libavcodec 57. 92.100 / 57. 92.100 libavformat 57. 72.100 / 57. 72.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 84.100 / 6. 84.100 libswscale 4. 7.100 / 4. 7.100 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, h264, from '/home/ux/fate-samples/h264-conformance/FRext/HPCAFL_BRCM_C.264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(top first), 352x288, 25 fps, 25 tbr, 1200k tbn, 50 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native)) Output #0, framecrc, to 'pipe:': Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288, q=2-31, 30412 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc rawvideo [framecrc @ 0x7d680001a400] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [framecrc @ 0x7d680001a400] Encoder did not produce proper pts, making some up. ================== WARNING: ThreadSanitizer: data race (pid=10916) Write of size 4 at 0x7d64000174fc by main thread (mutexes: write M2313): #0 update_context_from_user src/libavcodec/pthread_frame.c:335 (ffmpeg+0x000000df7b06) #1 submit_packet src/libavcodec/pthread_frame.c:396 (ffmpeg+0x000000df7b06) #2 ff_thread_decode_frame src/libavcodec/pthread_frame.c:490 (ffmpeg+0x000000df7b06) #3 avcodec_decode_video2 src/libavcodec/utils.c:2273 (ffmpeg+0x000000f650b2) #4 do_decode src/libavcodec/utils.c:2823 (ffmpeg+0x000000f666e2) #5 avcodec_send_packet src/libavcodec/utils.c:2918 (ffmpeg+0x000000f67ec1) #6 decode src/ffmpeg.c:2254 (ffmpeg+0x000000524865) #7 decode_video src/ffmpeg.c:2398 (ffmpeg+0x000000524865) #8 process_input_packet src/ffmpeg.c:2633 (ffmpeg+0x0000005276b4) #9 process_input src/ffmpeg.c:4407 (ffmpeg+0x0000004edb1b) #10 transcode_step src/ffmpeg.c:4518 (ffmpeg+0x0000004edb1b) #11 transcode src/ffmpeg.c:4572 (ffmpeg+0x0000004edb1b) #12 main src/ffmpeg.c:4777 (ffmpeg+0x0000004edb1b) Previous read of size 4 at 0x7d64000174fc by thread T1 (mutexes: write M2311): #0 ff_thread_await_progress src/libavcodec/pthread_frame.c:592 (ffmpeg+0x000000df8b3e) #1 await_references src/libavcodec/h264_mb.c:193 (ffmpeg+0x0000013ee667) #2 hl_motion_420_complex src/libavcodec/h264_mc_template.c:80 (ffmpeg+0x0000013f43b9) #3 hl_decode_mb_complex src/libavcodec/h264_mb_template.c:180 (ffmpeg+0x0000013f43b9) #4 ff_h264_hl_decode_mb src/libavcodec/h264_mb.c:812 (ffmpeg+0x000001409e96) #5 decode_slice src/libavcodec/h264_slice.c:2549 (ffmpeg+0x00000141b446) #6 ff_h264_execute_decode_slices src/libavcodec/h264_slice.c:2724 (ffmpeg+0x00000141dc26) #7 decode_nal_units src/libavcodec/h264dec.c:715 (ffmpeg+0x000000b24cd7) #8 h264_decode_frame src/libavcodec/h264dec.c:1016 (ffmpeg+0x000000b24cd7) #9 frame_worker_thread src/libavcodec/pthread_frame.c:199 (ffmpeg+0x000000df924b) Location is heap block of size 1160 at 0x7d6400017200 allocated by main thread: #0 posix_memalign /build/gcc/src/gcc/libsanitizer/tsan/tsan_interceptors.cc:779 (libtsan.so.0+0x000000028229) #1 av_malloc src/libavutil/mem.c:87 (ffmpeg+0x00000172c571) #2 ff_frame_thread_init src/libavcodec/pthread_frame.c:771 (ffmpeg+0x000000dfa1fb) #3 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f548a) #4 avcodec_open2 src/libavcodec/utils.c:1420 (ffmpeg+0x000000f6d31f) #5 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x000000523993) #6 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x000000523993) #7 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec2ee) #8 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec2ee) Mutex M2313 (0x7d5c0000f750) created at: #0 pthread_mutex_init /build/gcc/src/gcc/libsanitizer/tsan/tsan_interceptors.cc:1091 (libtsan.so.0+0x000000028cbe) #1 strict_pthread_mutex_init src/libavutil/thread.h:63 (ffmpeg+0x000000df7354) #2 strict_pthread_mutex_init src/libavcodec/pthread_frame.c:774 (ffmpeg+0x000000dfa22d) #3 ff_frame_thread_init src/libavcodec/pthread_frame.c:774 (ffmpeg+0x000000dfa22d) #4 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f548a) #5 avcodec_open2 src/libavcodec/utils.c:1420 (ffmpeg+0x000000f6d31f) #6 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x000000523993) #7 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x000000523993) #8 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec2ee) #9 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec2ee) Mutex M2311 (0x7d5c0000f5a8) created at: #0 pthread_mutex_init /build/gcc/src/gcc/libsanitizer/tsan/tsan_interceptors.cc:1091 (libtsan.so.0+0x000000028cbe) #1 strict_pthread_mutex_init src/libavutil/thread.h:63 (ffmpeg+0x000000df7354) #2 strict_pthread_mutex_init src/libavcodec/pthread_frame.c:774 (ffmpeg+0x000000dfa22d) #3 ff_frame_thread_init src/libavcodec/pthread_frame.c:774 (ffmpeg+0x000000dfa22d) #4 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f548a) #5 avcodec_open2 src/libavcodec/utils.c:1420 (ffmpeg+0x000000f6d31f) #6 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x000000523993) #7 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x000000523993) #8 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec2ee) #9 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec2ee) Thread T1 (tid=10967, running) created by main thread at: #0 pthread_create /build/gcc/src/gcc/libsanitizer/tsan/tsan_interceptors.cc:876 (libtsan.so.0+0x000000028490) #1 ff_frame_thread_init src/libavcodec/pthread_frame.c:829 (ffmpeg+0x000000dfa471) #2 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f548a) #3 avcodec_open2 src/libavcodec/utils.c:1420 (ffmpeg+0x000000f6d31f) #4 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x000000523993) #5 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x000000523993) #6 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec2ee) #7 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec2ee) SUMMARY: ThreadSanitizer: data race src/libavcodec/pthread_frame.c:335 in update_context_from_user ================== frame= 300 fps= 31 q=-0.0 Lsize= 17kB time=00:00:12.00 bitrate= 11.7kbits/s speed=1.22x video:44550kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown ThreadSanitizer: reported 1 warnings