qtrle: use the AVFrame API properly.