ffmpeg: avoid direct access to lowres use av_codec_g/set_lowres()

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