avformat/movenc: Check input sample count