truemotion2: use the AVFrame API properly.