Fix CodecID changes in recent libav libraries