upipe_avcdec: check lowres

Check lowres to prevent avcodec_open2() failure.
upipe_x264: fix floating point exception

use encoder parameters to compute latency