Disabling use of avcodec_close as it locks the program (not thread
safe?). TODO: find a more elegant way to clean the codec.
Authored by: brunoherbelin 2016-04-05
Parent: [r1113]
Child: [r1115]