ffmpeg version N-85269-gd8eb40bd70 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. 59.100 / 55. 59.100 libavcodec 57. 91.100 / 57. 91.100 libavformat 57. 72.100 / 57. 72.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 83.100 / 6. 83.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/camp_mot_fld0_full.26l': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p(top first), 720x480, 25.42 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, 720x480, q=2-31, 103680 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc rawvideo [framecrc @ 0x7d680001b600] 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 @ 0x7d680001b600] Encoder did not produce proper pts, making some up. ================== WARNING: ThreadSanitizer: data race (pid=27255) Write of size 4 at 0x7d6400017efc by main thread (mutexes: write M1915): #0 update_context_from_user src/libavcodec/pthread_frame.c:335 (ffmpeg+0x000000df7496) #1 submit_packet src/libavcodec/pthread_frame.c:396 (ffmpeg+0x000000df7496) #2 ff_thread_decode_frame src/libavcodec/pthread_frame.c:490 (ffmpeg+0x000000df7496) #3 avcodec_decode_video2 src/libavcodec/utils.c:2272 (ffmpeg+0x000000f649b2) #4 do_decode src/libavcodec/utils.c:2822 (ffmpeg+0x000000f65fe2) #5 avcodec_send_packet src/libavcodec/utils.c:2917 (ffmpeg+0x000000f677c1) #6 decode src/ffmpeg.c:2254 (ffmpeg+0x000000524685) #7 decode_video src/ffmpeg.c:2398 (ffmpeg+0x000000524685) #8 process_input_packet src/ffmpeg.c:2633 (ffmpeg+0x0000005274d4) #9 process_input src/ffmpeg.c:4407 (ffmpeg+0x0000004ed93b) #10 transcode_step src/ffmpeg.c:4518 (ffmpeg+0x0000004ed93b) #11 transcode src/ffmpeg.c:4572 (ffmpeg+0x0000004ed93b) #12 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ed93b) Previous read of size 4 at 0x7d6400017efc by thread T2 (mutexes: write M1917): #0 ff_thread_report_progress src/libavcodec/pthread_frame.c:569 (ffmpeg+0x000000df82ea) #1 decode_finish_row src/libavcodec/h264_slice.c:2466 (ffmpeg+0x000001413e61) #2 decode_slice src/libavcodec/h264_slice.c:2584 (ffmpeg+0x00000141b578) #3 ff_h264_execute_decode_slices src/libavcodec/h264_slice.c:2722 (ffmpeg+0x00000141d676) #4 decode_nal_units src/libavcodec/h264dec.c:715 (ffmpeg+0x000000b24ae7) #5 h264_decode_frame src/libavcodec/h264dec.c:1016 (ffmpeg+0x000000b24ae7) #6 frame_worker_thread src/libavcodec/pthread_frame.c:199 (ffmpeg+0x000000df8bbb) Location is heap block of size 1160 at 0x7d6400017c00 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+0x00000172bab1) #2 ff_frame_thread_init src/libavcodec/pthread_frame.c:769 (ffmpeg+0x000000df9b6b) #3 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #4 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #5 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #6 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #7 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #8 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) Mutex M1915 (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+0x000000df6ce4) #2 strict_pthread_mutex_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #3 ff_frame_thread_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #4 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #5 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #6 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #7 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #8 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #9 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) Mutex M1917 (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+0x000000df6ce4) #2 strict_pthread_mutex_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #3 ff_frame_thread_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #4 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #5 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #6 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #7 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #8 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #9 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) Thread T2 (tid=27369, 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:827 (ffmpeg+0x000000df9de1) #2 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #3 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #4 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #5 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #6 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #7 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) SUMMARY: ThreadSanitizer: data race src/libavcodec/pthread_frame.c:335 in update_context_from_user ================== ================== WARNING: ThreadSanitizer: data race (pid=27255) Read of size 4 at 0x7d6400017efc by thread T2 (mutexes: write M1917): #0 ff_thread_report_progress src/libavcodec/pthread_frame.c:569 (ffmpeg+0x000000df82ea) #1 decode_finish_row src/libavcodec/h264_slice.c:2466 (ffmpeg+0x000001413e61) #2 decode_slice src/libavcodec/h264_slice.c:2584 (ffmpeg+0x00000141b578) #3 ff_h264_execute_decode_slices src/libavcodec/h264_slice.c:2722 (ffmpeg+0x00000141d676) #4 decode_nal_units src/libavcodec/h264dec.c:715 (ffmpeg+0x000000b24ae7) #5 h264_decode_frame src/libavcodec/h264dec.c:1016 (ffmpeg+0x000000b24ae7) #6 frame_worker_thread src/libavcodec/pthread_frame.c:199 (ffmpeg+0x000000df8bbb) Previous write of size 4 at 0x7d6400017efc by main thread (mutexes: write M1915): #0 update_context_from_user src/libavcodec/pthread_frame.c:335 (ffmpeg+0x000000df7496) #1 submit_packet src/libavcodec/pthread_frame.c:396 (ffmpeg+0x000000df7496) #2 ff_thread_decode_frame src/libavcodec/pthread_frame.c:490 (ffmpeg+0x000000df7496) #3 avcodec_decode_video2 src/libavcodec/utils.c:2272 (ffmpeg+0x000000f649b2) #4 do_decode src/libavcodec/utils.c:2822 (ffmpeg+0x000000f65fe2) #5 avcodec_send_packet src/libavcodec/utils.c:2917 (ffmpeg+0x000000f677c1) #6 decode src/ffmpeg.c:2254 (ffmpeg+0x000000524685) #7 decode_video src/ffmpeg.c:2398 (ffmpeg+0x000000524685) #8 process_input_packet src/ffmpeg.c:2633 (ffmpeg+0x0000005274d4) #9 process_input src/ffmpeg.c:4407 (ffmpeg+0x0000004ed93b) #10 transcode_step src/ffmpeg.c:4518 (ffmpeg+0x0000004ed93b) #11 transcode src/ffmpeg.c:4572 (ffmpeg+0x0000004ed93b) #12 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ed93b) Location is heap block of size 1160 at 0x7d6400017c00 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+0x00000172bab1) #2 ff_frame_thread_init src/libavcodec/pthread_frame.c:769 (ffmpeg+0x000000df9b6b) #3 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #4 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #5 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #6 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #7 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #8 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) Mutex M1917 (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+0x000000df6ce4) #2 strict_pthread_mutex_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #3 ff_frame_thread_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #4 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #5 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #6 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #7 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #8 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #9 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) Mutex M1915 (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+0x000000df6ce4) #2 strict_pthread_mutex_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #3 ff_frame_thread_init src/libavcodec/pthread_frame.c:772 (ffmpeg+0x000000df9b9d) #4 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #5 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #6 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #7 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #8 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #9 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) Thread T2 (tid=27369, 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:827 (ffmpeg+0x000000df9de1) #2 ff_thread_init src/libavcodec/pthread.c:77 (ffmpeg+0x0000014f4eda) #3 avcodec_open2 src/libavcodec/utils.c:1419 (ffmpeg+0x000000f6cc1f) #4 init_input_stream src/ffmpeg.c:2895 (ffmpeg+0x0000005237b3) #5 transcode_init src/ffmpeg.c:3628 (ffmpeg+0x0000005237b3) #6 transcode src/ffmpeg.c:4543 (ffmpeg+0x0000004ec10e) #7 main src/ffmpeg.c:4777 (ffmpeg+0x0000004ec10e) SUMMARY: ThreadSanitizer: data race src/libavcodec/pthread_frame.c:569 in ff_thread_report_progress ================== frame= 30 fps= 11 q=-0.0 Lsize= 2kB time=00:00:01.20 bitrate= 12.2kbits/s speed=0.438x video:15188kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown ThreadSanitizer: reported 2 warnings