transcode: don't crash with threads with freeing pictures all over