Added a protection agains libav crash on avcodec_decode_video2 when
calling fill_first_frame on VideoFile (execute function in a thread and wait for timeout).
Authored by: brunoherbelin 2016-10-17
Parent: [r1209]
Child: [r1211]