I have not entered using that method but what you have been told is correct. Having an expired passport with a valid entry visa along with your current passport will get you in. Brazil immigration officials seem (at least to me) to be very lax, so I wouldn't worry at all.