screenshots: set AVFrame parameters

Currently, libavcodec is rather lenient, but it might get stricter in
the future.

Fixes #1398.