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