smacker: use the AVFrame API properly.