lclenc: use the AVFrame API properly.