walked through the sampling code with someone from #libav channel
sampling code works correctly, issue is probably further down the path.