<div dir="ltr">Hi,<div><br></div><div>While working on application based on libav* we've encountered strange decoder behavior: it detects wrong input framerate when we specify more than 1 thread to it. So it looks like a bug, but maybe we do something wrong? </div><div>The problem with framerate detected by decoder: when we set 1 decoder thread it detects framerate correctly, but when we set 2 or more it doubles the framerate.</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:yandex-sans,Arial,sans-serif">Here is a minimal code with h264 sample bitstream for reproduce such behavior: <a href="https://yadi.sk/d/SBC1mv_L3aNJKK" target="_blank">https://yadi.sk/d/SBC1mv_L3aNJKK</a></span> </div><div><br></div><div>If you compile it and run you will see output:<br>./decode_video 1 input.h264 -- 50/1 fps (correct)<br>./decode_video auto input.h264 -- 100/1 (doubled)<br><br>Can please help to figure out what wrong here? How to fix this behavior? And yes I need multiple threads for decoding.</div></div>