move check for libavcodec