qtrleenc: use the AVFrame API properly.