check for libavcode headers before processing