avcodec: pass aligned picture dimensions to video output

This enables direct rendering for H.264 software decoding.