avcodec: replace uses of deprecated avcodec_set_dimensions()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>